clintish
Command line helper and arguments parser, based upon clint and primeish
Installing
npm install clintish colors --save
Use
var clint = ;; var { // a boolean helper if a value is present if value === 'no' || value === 'false' return false; if value === 'yes' || value === 'true' return true; return value;}; // register full cmd line arg and aliases with some help textclint;clint;clint; // register actual argsclint; var { // uses command definitions from above console;}; // now parser of argsvar { args = args || processargv; var options = compress: true auto: false now: false log: 0 ; if !argslength // call some cli helper. return ; clint; clint; clint;}; ;
That's about all you need to get going and develop node.js CLI apps.