# process-yargs-parser

> Lightweight Node.js arguments parser with 0 Dependencies 🚀. **process-yargs-parser** is an opinionated yargs-parser with many needless yargs-parser configurations disabled by default.

Latest version **2.1.0** (published 2021-07-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install process-yargs-parser
pnpm add process-yargs-parser
yarn add process-yargs-parser
bun add process-yargs-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 | 2.1.0 |
| Published | 2021-07-09 |
| First published | 2020-11-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | legend80s |
| Maintainers | legend80s |
| Keywords | yargs, parser, command, cli, option, argument, args, argv, flag |

## Links

- npm: https://www.npmjs.com/package/process-yargs-parser
- Repository: https://github.com/legend80s/process-yargs-parser
- Issues: https://github.com/legend80s/process-yargs-parser/issues
- npm.io page: https://npm.io/package/process-yargs-parser

## 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.1.0 (latest) — 2021-07-09
- 2.0.0 — 2021-04-22
- 1.0.3 — 2020-11-11
- 1.0.2 — 2020-11-09
- 1.0.1 — 2020-11-09
- 1.0.0 — 2020-11-08
- 0.0.3 — 2020-11-08
- 0.0.2 — 2020-11-08

## README

# process-yargs-parser

> Lightweight Node.js arguments parser with 0 Dependencies 🚀.
>
> **process-yargs-parser** is an opinionated yargs-parser with many needless yargs-parser configurations disabled by default.

<p>
  <a href="https://www.npmjs.com/package/process-yargs-parser">
    <img src="https://img.shields.io/npm/v/process-yargs-parser.svg" alt="npm version" />
  </a>
  <a href="https://www.npmjs.com/package/process-yargs-parser">
    <img src="https://img.shields.io/npm/dm/process-yargs-parser.svg" alt="npm downloads" />
  </a>
  <a href="https://packagephobia.now.sh/result?p=process-yargs-parser" rel="nofollow">
    <img src="https://packagephobia.now.sh/badge?p=process-yargs-parser" alt="install size">
  </a>
  <a href="https://github.com/legend80s/process-yargs-parser/blob/master/test/index.test.js">
    <img src="https://badgen.net/badge/passed/jest/green" alt="jest passed" />
  </a>
  <a href="https://github.com/legend80s/process-yargs-parser/blob/master/test/index.test.js">
    <img src="http://img.shields.io/nycrc/legend80s/process-yargs-parser" alt="min coverage" />
  </a>
  <a href="https://www.npmjs.com/package/git-commit-msg-linter">
    <img src="https://badgen.net/badge/git-commit-msg-linter/3.0.0/yellow" alt="commit msg linted by git-commit-msg-linter" />
  </a>
</p>

## Example

```sh
npm i process-yargs-parser --save
```

```javascript
const argv = require('process-yargs-parser')(process.argv.slice(2))

console.log(argv)
```

```sh
node ./example.js --foo=33 --bar hello

{ _: [], foo: 33, bar: 'hello' }
```

*or parse a string!*

```javascript
const argv = require('process-yargs-parser')('--foo=99 --bar=33')

console.log(argv)
```

```javascript
{ _: [], foo: 99, bar: 33 }
```

READ more usages in [index.test.js](https://github.com/legend80s/process-yargs-parser/blob/master/test/index.test.js).

## Features

- [x] duplicate-arguments-array: default false
- [x] short-option-groups: default false
- [x] boolean-negation: default false
- [x] no-convert-number-string default false. will convert "1" to 1

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