cosmiconfig
10.0.1 · 30 Aug 2026MIT172.2M / weekRepositoryHomepagenpmAtom feed
Your version
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
--configflag. cosmiconfig will not parse command line arguments. Your application can parse command line arguments and pass them to cosmiconfig.Removed:
argvconfig option.Removed: support for Node versions < 4.
Added:
syncoption.Fixed: Throw a clear error on getting empty config file.
Fixed: when a
options.configPathispackage.json, return the package prop, not the entire JSON file.