GitShow/sindresorhus/npm-run-path
sindresorhus

npm-run-path

Get your PATH prepended with locally installed binaries

by sindresorhus
Star on GitHubForknpm

JavaScript

110 stars10 forks7 contributorsQuiet · 1y agoSince 2015v6.0.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus26 contributions
ehmicky
ehmicky11 contributions
BendingBender
BendingBender2 contributions
coreyfarrell
coreyfarrell1 contribution
thorn0
thorn01 contribution
Richienb
Richienb1 contribution
ntwb
ntwb1 contribution

Languages

View on GitHub →
JavaScript79.4%
TypeScript20.6%

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 →
ehmicky
Test on Node 23MergedPR

This runs CI tests on the latest Node.js version.

ehmicky · 1y ago
ehmicky
Handle empty `PATH` betterMergedPR

This improves the logic for unusual environment variable values: When it is an empty string, the result should end with or When it is only or , the result should not include two or in a row

ehmicky · 1y ago
ehmicky
Make it idempotentMergedPR

This PR makes idempotent. I.e. if the directories added by are already present in the environment variable, they are not added twice. Otherwise, if Execa spawns a subprocess which spawns another subprocess (and so on), the final subprocess will end up with a long environment variable, which is slower for the OS to process since each directory is checked.

ehmicky · 2y ago
Structured data for AI agents

Repository: sindresorhus/npm-run-path. Description: Get your PATH prepended with locally installed binaries Stars: 110, Forks: 10. Primary language: JavaScript. Languages: JavaScript (79.4%), TypeScript (20.6%). License: MIT. Latest release: v6.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, ehmicky, BendingBender, coreyfarrell, thorn0, Richienb, ntwb.

·@ofershap

Replace github.com with gitshow.dev