# node-options-to-argv

> Convert a NODE_OPTIONS environment variable to an argv list, or vice versa

Latest version **1.0.0** (published 2025-11-26) · BlueOak-1.0.0 license · 0 weekly downloads

## Install

```sh
npm install node-options-to-argv
pnpm add node-options-to-argv
yarn add node-options-to-argv
bun add node-options-to-argv
```

## Health

**Score 60/100 (C)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2025-11-26 |
| First published | 2025-11-26 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | isaacs |

## Links

- npm: https://www.npmjs.com/package/node-options-to-argv
- npm.io page: https://npm.io/package/node-options-to-argv

## Recent versions

- 1.0.0 (latest) — 2025-11-26

## README

# node-options-to-argv

Convert a `NODE_OPTIONS` environment variable to an argv list, or
vice versa.

## USAGE

```ts
import { nodeOptionsToArgv, argvToNodeOptions } from 'node-options-to-argv'

// converts the process.execArgv list of options
// into a suitable NODE_OPTIONS env string
console.log(argvToNodeOptions(process.execArgv))

// converts the current NODE_OPTIONS env string into a
// list of strings for an argv
console.log(nodeOptionsToArgv(process.env.NODE_OPTIONS))
```

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