commandos
Version:
Command line parser, compatible with DOS style command
56 lines (38 loc) • 3 kB
Markdown
# commandos
__Command line parser, compatible with DOS style command__
[](https://coveralls.io/github/YounGoat/nodejs.commandos2?branch=master)
[](https://www.npmjs.com/package/commandos)
[](https://www.npmjs.com/package/commandos)
[](https://www.npmjs.com/package/commandos)
[](https://coveralls.io/github/YounGoat/nodejs.commandos2?branch=master)
[](https://david-dm.org/YounGoat/nodejs.commandos)
[](https://david-dm.org/YounGoat/nodejs.commandos?type=dev)
[](https://travis-ci.org/YounGoat/nodejs.commandos)
[](https://github.com/YounGoat/nodejs.commandos/stargazers)
LANGUAGES / [简体中文](./README.zh_CN.md)
The name *commandos* is combination of *command* and *DOS*. __commandos__ is a light-weighted command line parser which help to connect cli and Node.js application.
## Table of Contents
* [API](#api)
* [Why *commandos*](#why-commandos)
* [About](#about)
* [References](#references)
* [Links](#links)
## API
* [commandos.parse()](docs/parse.md)
* [commandos.run()](docs/run.md)
## Why *commandos*
There are already many packages help you to parse command line content, in which [minimist](https://www.npmjs.com/package/minimist) and [commander](https://www.npmjs.com/package/commander) are probably most famous. However, sometimes __minimist__ is too slim while __commander__ is too heavy. That is why I wrote __commandos__.
## About
*commandos* = *command* + *DOS*
## References
If __commandos__ is not to your taste, maybe the following packages is considerable (in alphabetical order):
* [commander](https://www.npmjs.com/package/commander)
* [getopts](https://www.npmjs.com/package/getopts)
* [minimist](https://www.npmjs.com/package/minimist)
* [nomnom](https://www.npmjs.com/package/nomnom)
* [optimist](https://www.npmjs.com/package/optimist)
* [yargs](https://www.npmjs.com/package/yargs)
* [cli-argparse](https://www.npmjs.com/package/cli-argparse)
## Links
* [CHANGE LOG](./CHANGELOG.md)
* [Homepage](https://github.com/YounGoat/nodejs.commandos)