cosmiconfig
10.0.1 · 30 Aug 2026MIT172.2M / weekRepositoryHomepagenpmAtom feed
Your version
8.3.6 is the newest release of 8.x.
In short
1 new
Release note
Add support for ECMAScript modules (ESM) to the asynchronous API. End users running Node versions that support ESM can provide
.mjsfiles, or.jsfiles whose nearest parentpackage.jsonfile contains"type": "module".${moduleName}rc.mjsand${moduleName}.config.mjsare included in the defaultsearchPlacesof the asynchronous API.The synchronous API does not support ECMAScript modules, so does not look for
.mjsfiles.To learn more, read "Loading JS modules".