cosmiconfig
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -29,4 +29,4 @@ // Much inspiration from https://github.com/sindresorhus/find-up | ||
function find() { | ||
if (options.config) { | ||
loadDefinedFile(options.config, options.format).then(function(result) { | ||
if (options.configPath) { | ||
loadDefinedFile(options.configPath, options.format).then(function(result) { | ||
return finishWith(result); | ||
@@ -33,0 +33,0 @@ }).catch(reject); |
{ | ||
"name": "cosmiconfig", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module", | ||
@@ -25,5 +25,2 @@ "main": "index.js", | ||
"homepage": "https://github.com/davidtheclark/cosmiconfig#readme", | ||
"files": [ | ||
"index.js" | ||
], | ||
"dependencies": { | ||
@@ -30,0 +27,0 @@ "graceful-fs": "^4.1.2", |
@@ -96,2 +96,8 @@ # cosmiconfig [![Build Status](https://travis-ci.org/davidtheclark/cosmiconfig.svg?branch=master)](https://travis-ci.org/davidtheclark/cosmiconfig) | ||
##### configPath | ||
Type: `string` | ||
Path to a configuration file. cosmiconfig will read it and try to parse it as JSON, YAML, or JS. | ||
## Differences from [rc](https://github.com/dominictarr/rc) | ||
@@ -98,0 +104,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31066
37
737
111
1