GitShow/sindresorhus/package-config
sindresorhus

package-config

Get namespaced config from the closest package.json

by sindresorhus
Star on GitHubForknpm

JavaScript

119 stars10 forks6 contributorsQuiet · 2y agoSince 2015v5.0.0MIT

Meet the team

See all 6 on GitHub →
sindresorhus
sindresorhus33 contributions
coreyfarrell
coreyfarrell2 contributions
BendingBender
BendingBender2 contributions
jamestalmage
jamestalmage1 contribution
ekmartin
ekmartin1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript85.5%
TypeScript14.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
jimmywarting
time for major ESM changeClosedIssue

& 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 · 4y ago
jimmywarting
There is an alternative way.ClosedIssue

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 · 4y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Structured data for AI agents

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.

·@ofershap

Replace github.com with gitshow.dev