sindresorhus

package-config

Get namespaced config from the closest package.json

by sindresorhus

JavaScript

JavaScript85.5%
TypeScript14.5%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
jimmywarting

& 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...

jimmywarting · 5y ago
jimmywarting

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:

jimmywarting · 5y ago
Structured data for AI agents

Repository: sindresorhus/package-config. Description: Get namespaced config from the closest package.json Stars: 118, 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: 1mo ago. Community health: 85%. Top contributors: sindresorhus, coreyfarrell, BendingBender, jamestalmage, ekmartin, Richienb.