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
@landmineaknpm2/consequatur-quod-maxime
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![Run Tests](https://github.com/landmineaknpm2/consequatur-quod-maxime/workflows/Run%20Te
npm install env-run-path
Typescript
Module System
Node Version
NPM Version
68.2
Supply Chain
80.7
Quality
76.5
Maintenance
100
Vulnerability
100
License
TypeScript (74.24%)
JavaScript (25.4%)
Smarty (0.35%)
Total Downloads
13,797
Last Day
7
Last Week
40
Last Month
205
Last Year
1,332
14 Stars
1,345 Commits
3 Forks
3 Watching
1 Branches
17 Contributors
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
Publised On
03 May 2024
Cumulative downloads
Total Downloads
Last day
600%
7
Compared to previous day
Last week
1,233.3%
40
Compared to previous week
Last month
5,025%
205
Compared to previous month
Last year
-33.5%
1,332
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
security policy file not detected
Details
Reason
no SAST tool 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
85 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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