# argps

> Parsing arguments to Object automatically

Latest version **1.0.3** (published 2016-04-30) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2016-04-30 |
| First published | 2016-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | jarvin-guan |
| Maintainers | jarvin-guan |
| Keywords | arg, arguments, parsing |

## Links

- npm: https://www.npmjs.com/package/argps
- Repository: https://github.com/Jarvin-Guan/argps
- Homepage: https://github.com/Jarvin-Guan/argps#readme
- Issues: https://github.com/Jarvin-Guan/argps/issues
- npm.io page: https://npm.io/package/argps

## 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.3 (latest) — 2016-04-30

## README

# argps

[![Join the chat at https://gitter.im/Jarvin-Guan/argps](https://badges.gitter.im/Jarvin-Guan/argps.svg)](https://gitter.im/Jarvin-Guan/argps?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build](https://travis-ci.org/Jarvin-Guan/argps.svg?branch=master)](https://travis-ci.org/Jarvin-Guan/argps/)  [![Coverage Status](https://coveralls.io/repos/github/Jarvin-Guan/argps/badge.svg?branch=master)](https://coveralls.io/github/Jarvin-Guan/argps?branch=master) 

####Aim : Parsing parameters automatically     node.js
####Prower by _Regex_

CI Node version Passed
* 0.12
* 4
* 5
* iojs

## Installation
```
$ npm install argps --save
```

##Demo

```
$ git clone https://github.com/Jarvin-Guan/argps.git
$ cd argps
$ node ./demo/test.js -a 1 -b 2
    { _: [ '' ], a: '1', b: '2' }
  node ./demo/test.js -a 1 -a 2 -b -c --d --e 4
    { _: [ '' ],a: [ '1', '2' ],b: 'true',c: 'true',d: 'true',e: '4' }
  node ./demo/test.js v d k -a 1 gg dd -b
    { _: [ 'v', 'd', 'k', 'gg', 'dd' ], a: '1', b: 'true' }
```

##How to use in your project?
```
const argps = require( 'argps');
var argObject = argps(process.argv.slice(2));
/* just like demo #1
  argObject:{
     _: [ '' ],
     a: '1',
     b: '2' }
*/
//argObject.a === '1'
```
 


## License

  MIT

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