dashdash

Light, featureful and explicit option parsing library for Node.js

npmmacoslinuxwindows
Try with needOr install directly
Source

About

A light, featureful and explicit option parsing library.

Commands

dashdash

Examples

Parse command-line options with a simple script$ node script.js --verbose --output file.txt
Define and validate options using dashdash in Node.js code$ node -e "var dashdash = require('dashdash'); var opts = dashdash.parse({options: [{names: ['help', 'h'], type: 'bool'}]})"
Handle short and long option flags together$ node app.js -v --config=myconfig.json --debug