# node-version-utils

> Utilities for running commands on a specific version of node by installed path

Latest version **1.3.21** (published 2026-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-version-utils
pnpm add node-version-utils
yarn add node-version-utils
bun add node-version-utils
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.3.21 |
| Published | 2026-09-12 |
| First published | 2020-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=0.8 |
| Dependencies | 2 |
| Unpacked size | 25.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | kmalakoff |
| Keywords | node, version, spawn, set, install, path, compatability, cross, platform, platforms |

## Links

- npm: https://www.npmjs.com/package/node-version-utils
- Repository: https://github.com/kmalakoff/node-version-utils
- Homepage: https://github.com/kmalakoff/node-version-utils#readme
- Issues: https://github.com/kmalakoff/node-version-utils/issues
- npm.io page: https://npm.io/package/node-version-utils

## Dependencies (2)

- [env-path-key](https://npm.io/package/env-path-key.md) ^1.0.0
- [path-string-prepend](https://npm.io/package/path-string-prepend.md) ^1.0.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.3.21 (latest) — 2026-09-12
- 1.3.20 — 2026-08-24
- 1.3.19 — 2026-05-26
- 1.3.18 — 2026-05-22
- 1.3.17 — 2025-12-12
- 1.3.16 — 2025-12-12
- 1.3.15 — 2025-12-07
- 1.3.14 — 2025-12-07
- 1.3.13 — 2025-12-04
- 1.3.12 — 2025-12-04
- 1.3.11 — 2025-12-04
- 1.3.10 — 2025-12-04
- 1.3.9 — 2025-12-02
- 1.3.8 — 2025-11-06
- 1.3.7 — 2025-10-21
- … 73 more at https://npm.io/package/node-version-utils/versions

## README

# node-version-utils

Prepare cross-platform child-process options for an installed Node.js version. It puts that version's `node` and `npm` first on `PATH` and sets the npm prefix.

## Install

```sh
npm install node-version-utils
```

## Use

```js
const { spawnOptions } = require('node-version-utils');
const { spawn } = require('child_process');

const options = spawnOptions('/path/to/node-install');
spawn('node', ['--version'], options).stdout.pipe(process.stdout);
```

Pass the installed version directory, not the path to its `node` executable. The returned options can be passed to Node's child-process APIs or compatible spawn libraries.

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