smartcli/README.md
2015-10-14 21:16:42 +02:00

898 B

smartcli

nodejs wrapper for CLI related tasks
Dev Status

Buildstatus/Dependencies

Build Status devDependency Status

Install the package

npm install smartcli

Usage

var smartcli = require("smartcli");

//returns true for terminal command "node myjs.js jazz"
smartcli.checkCommand('jazz'); 

/**
* returns an object for terminal command "node myjs.js --myoption something" like so
* {
*   name: 'myoption',
*   specified: true,
*   value: 'something'
* }
*/
smartcli.getOption('myoption');

Cheers Phil from Lossless Digital