Gathering detailed insights and metrics for env-run-path
Gathering detailed insights and metrics for env-run-path
Gathering detailed insights and metrics for env-run-path
Gathering detailed insights and metrics for env-run-path
run-node
Run the Node.js binary no matter what
fix-path
Fix the $PATH on macOS and Linux when run from a GUI app
@seydx/fix-path
Fix the $PATH on macOS and Linux when run from a GUI app
@xdanangelxoqenpm/vero-iure-nesciunt
A JavaScript module for performing various string transformation tasks. To install this module run command
npm install env-run-path
Typescript
Module System
Node Version
NPM Version
TypeScript (74.24%)
JavaScript (25.4%)
Smarty (0.35%)
Total Downloads
14,327
Last Day
79
Last Week
80
Last Month
204
Last Year
1,430
14 Stars
1,345 Commits
3 Forks
2 Watchers
1 Branches
17 Contributors
Updated on Jul 23, 2024
Minified
Minified + Gzipped
Latest Version
2.0.19
Package Id
env-run-path@2.0.19
Unpacked Size
37.62 kB
Size
8.03 kB
File Count
15
NPM Version
lerna/6.6.2/node@v22.1.0+x64 (win32)
Node Version
22.1.0
Published on
May 03, 2024
Cumulative downloads
Total Downloads
Last Day
1,216.7%
79
Compared to previous day
Last Week
105.1%
80
Compared to previous week
Last Month
-21.5%
204
Compared to previous month
Last Year
-4%
1,430
Compared to previous year
add locally installed binaries paths into process.env
yarn add env-run-path
import 'env-run-path/loader';
node -r env-run-path/loader -e console.log(process.env.Path)
demo1
1 2import { processRunPath } from 'env-run-path'; 3import { console } from 'debug-color2'; 4 5let { result, delimiter, pathKey } = processRunPath(); 6 7const originEnvPath = process.env[pathKey]; 8 9console.green.log(`origin:`); 10console.log(originEnvPath); 11 12console.green.log(`local`); 13console.log(result); 14 15// use origin first 16process.env[pathKey] = [originEnvPath, result].join(delimiter); 17 18console.green.log(`use origin first`); 19console.log(process.env[pathKey]); 20 21// use local bin first 22process.env[pathKey] = [result, originEnvPath].join(delimiter); 23 24console.green.log(`use local first`); 25console.log(process.env[pathKey]); 26
demo2
1import { processRunPath } from '../index';
2import { console } from 'debug-color2';
3
4let { result, pathKey } = processRunPath();
5
6const originEnvPath = process.env[pathKey];
7
8console.green.log(`origin:`);
9console.log(originEnvPath);
10
11// use origin first
12result = processRunPath({
13 includeEnvPath: true,
14}).result;
15
16console.green.log(`use origin first`);
17console.log(result);
18
19// use local bin first
20result = processRunPath({
21 includeEnvPath: true,
22 prepend: true,
23}).result;
24
25console.green.log(`use local first`);
26console.log(result);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
89 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More