Packages

cosmiconfig

10.0.1 · 30 Aug 2026MIT172.2M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major16 Sep 2017Where it was published

3.1.0 is the newest release of 3.x.

In short

2 new4 changed

Release note

  • Removed: support for loading config path using the --config flag. cosmiconfig will not parse command line arguments. Your application can parse command line arguments and pass them to cosmiconfig.

  • Removed: argv config option.

  • Removed: support for Node versions < 4.

  • Added: sync option.

  • Fixed: Throw a clear error on getting empty config file.

  • Fixed: when a options.configPath is package.json, return the package prop, not the entire JSON file.