Last 12 weeks · 0 commits
4 of 6 standards met
& are now both ESM (just need to update dep), now would be a grate time to upgrade this pkg-conf. Also a good opportunity to fix your todo's https://github.com/sindresorhus/pkg-conf/blob/147a41b22f10fd23ea25381e8056d551468445e7/index.js#L59-L62 Could also take the opportunity to change to spread , typescript understands it better...
npm already has something like config built in that don't get in the way of any package.json fields https://docs.npmjs.com/cli/v7/configuring-npm/package-json#config There isn't any need for looking up any package.json file or loading/reading a file sync or async and then parsing it... you can access it from process env variables like so:
Repository: sindresorhus/package-config. Description: Get namespaced config from the closest package.json Stars: 119, Forks: 10. Primary language: JavaScript. Languages: JavaScript (85.5%), TypeScript (14.5%). License: MIT. Latest release: v5.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 85%. Top contributors: sindresorhus, coreyfarrell, BendingBender, jamestalmage, ekmartin, Richienb.