What about making this and other class-level variables into instance variables (with a default value)? That way users can change the values by passing them in as options to the constructor. (e.g. this.TMP_DIR_ = opts.cacheDirectory || process.cwd() + '/.cache';)