# simple-argv

> simple process.argv value parser

Latest version **2.0.4** (published 2020-08-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-argv
pnpm add simple-argv
yarn add simple-argv
bun add simple-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.4 |
| Published | 2020-08-21 |
| First published | 2017-09-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Giovanni Bruno |
| Maintainers | giovanni.bruno |
| Keywords | argv, yargs |

## Links

- npm: https://www.npmjs.com/package/simple-argv
- Repository: https://github.com/giowe/simple-argv
- Homepage: https://github.com/giowe/simple-argv#readme
- Issues: https://github.com/giowe/simple-argv/issues
- npm.io page: https://npm.io/package/simple-argv

## 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

- 2.0.4 (latest) — 2020-08-21
- 2.0.3 — 2020-08-21
- 2.0.2 — 2019-03-16
- 2.0.1 — 2019-03-16
- 2.0.0 — 2019-03-16
- 1.2.2 — 2019-03-15
- 1.2.1 — 2019-03-15
- 1.2.0 — 2019-03-15
- 1.1.1 — 2018-11-04
- 1.1.0 — 2018-10-31
- 1.0.0 — 2017-09-29

## README

# simple-argv

[![Dependency Status][dependencies-image]][dependencies-url] [![Gandalf Status][gandalf-image]][gandalf-url]

[dependencies-url]: href="https://david-dm.org/giowe/simple-argv
[dependencies-image]: https://david-dm.org/giowe/simple-argv.svg
[gandalf-url]: https://www.youtube.com/watch?v=Sagg08DrO5U
[gandalf-image]: http://img.shields.io/badge/gandalf-approved-61C6FF.svg

Simple process.argv value parser, if [yargs](https://www.npmjs.com/package/yargs) has become an overkill for your needs.

``` bash
npm i simple-argv
```

## Parsing output example

given this simple program:

``` bash
const argv = require('simple-argv');
console.log(argv);
```

executed with this flags:

``` bash
  node . test1 test2 -a 1 --b 2 -c=testC -d = testD --debug --no-woman --no-cry --happy --key value test3 -xyz
```

will return this output:

``` json
{ _: [ 'test1', 'test2', 'test3' ],
  a: 1,
  b: 2,
  c: 'testC',
  d: 'testD',
  debug: true,
  woman: false,
  cry: false,
  happy: true,
  key: 'value'
  x: true,
  y: true,
  z: true
}
```

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