# argument-vector

> Split a string of command line options into and argv(argument vector) array

Latest version **1.0.2** (published 2016-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install argument-vector
pnpm add argument-vector
yarn add argument-vector
bun add argument-vector
```

## 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 | 1.0.2 |
| Published | 2016-01-20 |
| First published | 2016-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Colin Milhench |
| Maintainers | cmilhench |
| Keywords | argv, parser, argument-vector, split, quote, quoted-value, spawn |

## Links

- npm: https://www.npmjs.com/package/argument-vector
- Repository: https://github.com/cmilhench/argument-vector
- Homepage: https://github.com/cmilhench/argument-vector#readme
- Issues: https://github.com/cmilhench/argument-vector/issues
- npm.io page: https://npm.io/package/argument-vector

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^2.2.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-01-20

## README

# argument-vector 
[![Build Status](https://travis-ci.org/cmilhench/argument-vector.svg?branch=master)](https://travis-ci.org/cmilhench/argument-vector)

Split a string of command line options into and argv(argument vector) array.

This is perticularly handy for passing arguments to require('child_process').spawn

## Install

```
$ npm install argument-vector --save
```


## Usage

```js
var parser = require('argument-vector')();
var argv = parser.parse('curl http://example.com --keepalive-time 5 --cookie msg="String with spaces" -XPOST');
//=> ['curl', 'http://example.com', '--keepalive-time', '5', '--cookie', 'msg="String with spaces"', '-XPOST']
```

## License

MIT © [Colin Milhench](http://milhen.ch)

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