# cli-args

> small command line parser

Latest version **2.0.0** (published 2016-10-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install cli-args
pnpm add cli-args
yarn add cli-args
bun add cli-args
```

## 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.0 |
| Published | 2016-10-02 |
| First published | 2014-05-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | @joaquimserafim |
| Maintainers | quim |
| Keywords | cli, args, argument, options, command, parser |

## Links

- npm: https://www.npmjs.com/package/cli-args
- Repository: https://github.com/joaquimserafim/cli-args
- Homepage: https://github.com/joaquimserafim/cli-args#readme
- Issues: https://github.com/joaquimserafim/cli-args/issues
- npm.io page: https://npm.io/package/cli-args

## 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.0 (latest) — 2016-10-02
- 1.2.1 — 2014-10-21
- 1.1.1 — 2014-08-30
- 1.0.1 — 2014-05-28
- 1.0.0 — 2014-05-27

## README

# cli-args

<a href="https://nodei.co/npm/cli-args/"><img src="https://nodei.co/npm/cli-args.png?downloads=true"></a>

[![Build Status](https://travis-ci.org/joaquimserafim/cli-args.png?branch=master)](https://travis-ci.org/joaquimserafim/cli-args)![Code Coverage 100%](https://img.shields.io/badge/code%20coverage-100%25-green.svg?style=flat-square)[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/joaquimserafim/eventloop-info/blob/master/LICENSE)[![NodeJS](https://img.shields.io/badge/node-6-brightgreen.svg?style=flat-square)](https://github.com/joaquimserafim/eventloop-info/blob/master/package.json#L14)

[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)


####summary
small command line parser 


#### require

	var args = require('cli-args')
			
			
#### examples

```js
var args = require('cli-args')(process.argv.slice(2));
console.dir(args);
	


$ node ex1.js -a hello -b world -c 2014.5 --hello
{ _: ['hello'], a: 'hello', b: 'world', c: 2014.5 }


	
$ node ex2.js --date="2014-05-23T12:00:00" --port=80 --clean=false foo --exit
{ 
	_: ['foo', 'exit'],
	date: Thu May 23 2014 12:00:02 GMT+0100 (WEST),
	port: 80,
	clean: false
}
```

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