# simple-argv-parser

> Simple command line (process.argv) parser for Node.js

Latest version **1.2.0** (published 2019-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-argv-parser
pnpm add simple-argv-parser
yarn add simple-argv-parser
bun add simple-argv-parser
```

## 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.2.0 |
| Published | 2019-08-21 |
| First published | 2019-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dmytro Davydov |
| Maintainers | dd77 |
| Keywords | node.js, process.argv, parser, command, line, arguments, parser |

## Links

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

## Dependencies (1)

- [chai](https://npm.io/package/chai.md) ^4.2.0

## 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.2.0 (latest) — 2019-08-21
- 1.1.0 — 2019-08-13
- 1.1.4 — 2019-08-13
- 1.0.4 — 2019-08-12
- 1.0.3 — 2019-08-11
- 1.0.2 — 2019-08-11
- 1.0.1 — 2019-08-10
- 1.0.0 — 2019-08-10

## README

# simple-argv-parser is a command-line (process.argv) parser for Node.js with no dependencies!

Example of usage:

Install the package:

$ npm i simple-argv-parser

Import the package in your code. It returns an object { parsedObj } with command-line arguments parsed.

i.e. command: 

$ node index.js -a b -c

Then in your code:

const { parsedObj } = require('simple-argv-parser');

console.log(parsedObj); // prints { '-a': 'b', '-c': null }

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