# env-run-path

> add locally installed binaries paths into process.env

Latest version **2.0.29** (published 2026-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install env-run-path
pnpm add env-run-path
yarn add env-run-path
bun add env-run-path
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.29 |
| Published | 2026-09-06 |
| First published | 2019-12-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 41.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | bluelovers |
| Maintainers | bluelovers |

## Links

- npm: https://www.npmjs.com/package/env-run-path
- Repository: https://github.com/bluelovers/ws-yarn-workspaces
- Homepage: https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/env-run-path#readme
- Issues: https://github.com/bluelovers/ws-yarn-workspaces/issues
- npm.io page: https://npm.io/package/env-run-path

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) >=2.8.1
- [debug-color2](https://npm.io/package/debug-color2.md) ^1.3.2
- [@yarn-tool/env-path](https://npm.io/package/@yarn-tool/env-path.md) ^2.0.15
- [@yarn-tool/find-root](https://npm.io/package/@yarn-tool/find-root.md) ^2.0.25

## Recent versions

- 2.0.29 (latest) — 2026-09-06
- 2.0.28 — 2026-04-26
- 2.0.27 — 2026-04-26
- 2.0.25 — 2026-03-09
- 2.0.22 — 2026-03-04
- 2.0.21 — 2026-03-02
- 2.0.20 — 2025-09-07
- 2.0.19 — 2024-05-03
- 2.0.18 — 2022-11-14
- 2.0.17 — 2022-10-28
- 2.0.16 — 2022-10-01
- 2.0.15 — 2022-09-29
- 2.0.14 — 2022-09-28
- 2.0.13 — 2022-09-27
- 2.0.12 — 2022-09-27
- … 71 more at https://npm.io/package/env-run-path/versions

## README

# README.md

    add locally installed binaries paths into process.env

## install

```
yarn add env-run-path
```

## lazy use

```
import 'env-run-path/loader';
```

```
node -r env-run-path/loader -e console.log(process.env.Path)
```


## other use

demo1
```typescript

import { processRunPath } from 'env-run-path';
import { console } from 'debug-color2';

let { result, delimiter, pathKey } = processRunPath();

const originEnvPath = process.env[pathKey];

console.green.log(`origin:`);
console.log(originEnvPath);

console.green.log(`local`);
console.log(result);

// use origin first
process.env[pathKey] = [originEnvPath, result].join(delimiter);

console.green.log(`use origin first`);
console.log(process.env[pathKey]);

// use local bin first
process.env[pathKey] = [result, originEnvPath].join(delimiter);

console.green.log(`use local first`);
console.log(process.env[pathKey]);

```

demo2
```ts
import { processRunPath } from '../index';
import { console } from 'debug-color2';

let { result, pathKey } = processRunPath();

const originEnvPath = process.env[pathKey];

console.green.log(`origin:`);
console.log(originEnvPath);

// use origin first
result = processRunPath({
	includeEnvPath: true,
}).result;

console.green.log(`use origin first`);
console.log(result);

// use local bin first
result = processRunPath({
	includeEnvPath: true,
	prepend: true,
}).result;

console.green.log(`use local first`);
console.log(result);
```

---
_Source: https://npm.io/package/env-run-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
