Packages

cosmiconfig

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

Your version

8.2.0

4 Jun 2023Where it was published

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 .mjs files, or .js files whose nearest parent package.json file contains "type": "module".

    • ${moduleName}rc.mjs and ${moduleName}.config.mjs are included in the default searchPlaces of the asynchronous API.

    • The synchronous API does not support ECMAScript modules, so does not look for .mjs files.

    • To learn more, read "Loading JS modules".