Comparing version 2.1.0 to 2.2.0
@@ -36,7 +36,8 @@ /* eslint-disable node/no-deprecated-api */ | ||
configName: 'config', | ||
fileExtension: 'json' | ||
fileExtension: 'json', | ||
projectSuffix: 'nodejs' | ||
}, options); | ||
if (!options.cwd) { | ||
options.cwd = envPaths(options.projectName).config; | ||
options.cwd = envPaths(options.projectName, {suffix: options.projectSuffix}).config; | ||
} | ||
@@ -43,0 +44,0 @@ |
{ | ||
"name": "conf", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Simple config handling for your app or module", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
# conf [![Build Status: Linux and macOS](https://travis-ci.org/sindresorhus/conf.svg?branch=master)](https://travis-ci.org/sindresorhus/conf) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/n88jwh3aju39i0p2/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/conf/branch/master) | ||
# conf [![Build Status](https://travis-ci.org/sindresorhus/conf.svg?branch=master)](https://travis-ci.org/sindresorhus/conf) | ||
@@ -110,2 +110,15 @@ > Simple config handling for your app or module | ||
#### projectSuffix | ||
Type: `string`<br> | ||
Default: `nodejs` | ||
**You most likely don't need this. Please don't use it unless you really have to.** | ||
Suffix appended to `projectName` during config file creation to avoid name conflicts with native apps. | ||
You can pass an empty string to remove the suffix. | ||
For example, on macOS, the config file will be stored in the `~/Library/Preferences/foo-nodejs` directory, where `foo` is the `projectName`. | ||
### Instance | ||
@@ -112,0 +125,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12634
144
197