# cross-argv

> Cross platform normalization of process.argv

Latest version **2.0.0** (published 2021-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install cross-argv
pnpm add cross-argv
yarn add cross-argv
bun add cross-argv
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-11-03 |
| First published | 2018-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/cross-argv
- Repository: https://github.com/mafintosh/cross-argv
- Issues: https://github.com/mafintosh/cross-argv/issues
- npm.io page: https://npm.io/package/cross-argv

## Recent versions

- 2.0.0 (latest) — 2021-11-03
- 1.0.0 — 2018-07-05

## README

# cross-argv

Cross platform normalization of process.argv.

```
npm install cross-argv
```

Basically makes arguments with single quote strings work `node app.js 'foo bar'` everywhere,
which otherwise can cause issues when used in `cmd.exe`.

## Usage

``` js
const xargv = require('cross-argv')
console.log(xargs()) // returns a normalized process.argv
```

## API

#### `argv = xargv([argv])`

Returns a normalized argv array that looks the same cross platform.

If no args are passed it normalizes `process.argv`. Otherwise you can pass your own array.

## License

MIT

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