https://github.com/easimonenko/node-cli-options-parsing-review
Review of modules for parsing command line options in Node.js (in Russian).
https://github.com/easimonenko/node-cli-options-parsing-review
cli nodejs parsing review
Last synced: 3 months ago
JSON representation
Review of modules for parsing command line options in Node.js (in Russian).
- Host: GitHub
- URL: https://github.com/easimonenko/node-cli-options-parsing-review
- Owner: easimonenko
- License: mit
- Created: 2016-09-01T19:14:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T18:45:11.000Z (8 months ago)
- Last Synced: 2024-11-12T19:33:40.358Z (8 months ago)
- Topics: cli, nodejs, parsing, review
- Language: HTML
- Homepage: https://habr.com/post/309936/
- Size: 249 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README
# node-cli-options-parsing-review
Review of modules for parsing command line options in Node.js.
* [Обзор пакетов Node.js для разбора опций командной строки](./article.ru.md)
For generating of table or for trying of samples install packages first:
``` sh
npm install
```or
``` sh
yarn install
```## Generating of Table
To generating of table in Markdown format:
``` sh
cd table
node table-npm.js > table-npm.md
node table-github.js > table-github.md
```To generating of table in HTML use the command:
``` sh
cd table
node table.js --html > table.html
```## Sample for *commander*
Try:
``` sh
cd samples
node commander.js --help
```## Sample for *minimist*
Try:
``` sh
cd samples
node mininist.js -abc --help --size=large -- 1 2 3
node mininist-with-settings.js -abc --help --size=large -- 1 2 3
```## Sample for *yargs*
Try:
``` sh
cd samples
node yargs.js --version
node yargs.js -h
node yargs.js --size=middle
node yargs.js --list 1 2 3 --size=large
```## License
The sources of this project distributed by Expat-like license (see file [LICENSE](./LICENSE)). The text of paper in file [article.ru.md](./article.ru.md) distributed by CC-BY-ND 4.0 license. The sources of samples in folder [samples](./samples) in public domain.
***
(c) 2016, 2019, 2024 Evgeny Simonenko