# arrgv

> Parsing string to array of args like node on bash do.

Latest version **1.0.2** (published 2019-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install arrgv
pnpm add arrgv
yarn add arrgv
bun add arrgv
```

## 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 | 2019-11-12 |
| First published | 2015-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 0 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | astur |
| Maintainers | astur |
| Keywords | arguments, cli, parcing, testing, options, args, argv |

## Links

- npm: https://www.npmjs.com/package/arrgv
- Repository: https://github.com/astur/arrgv
- Homepage: https://github.com/astur/arrgv#readme
- Issues: https://github.com/astur/arrgv/issues
- npm.io page: https://npm.io/package/arrgv

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-11-12
- 1.0.1 — 2018-08-18
- 1.0.0 — 2018-06-06
- 0.0.6 — 2015-08-04
- 0.0.5 — 2015-07-31
- 0.0.4 — 2015-07-31
- 0.0.3 — 2015-07-31
- 0.0.2 — 2015-07-31
- 0.0.1 — 2015-07-31

## README

# Arrgv

Parsing string to array of args like node on bash do.

[![Build Status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]

When you type something like `node script.js bla bla bla` in shell and do `myArgs = process.argv.slice(2)` you get the same. All slashes, quotes and special symbols are handled same way.

## Install

```bash
npm install arrgv
```

## Tests

```bash
$ npm test
```

## Use cases

1. `spawn` a command that is given as a string
2. test `argv` parser with complicated example string
3. something else

## Example

```js
var arrgv = require('arrgv');
var str = '-param --format="hh:mm:ss" filename.ext';
console.log(arrgv(str));
/*
['-param',
 '--format=hh:mm:ss',
 'filename.ext' ]
*/
```

## License

MIT

[travis-url]: https://travis-ci.org/astur/arrgv
[travis-image]: https://travis-ci.org/astur/arrgv.svg?branch=master
[npm-url]: https://npmjs.org/package/arrgv
[npm-image]: https://badge.fury.io/js/arrgv.svg

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