node-command
v1.2.2
Published
A command runner with node support.
Downloads
8
Readme
node-command
A command runner with node support.
Install
$ npm install --save node-command
Usage
var nodeCommand = require('node-command');
nodeCommand(
name, // The name to try
args, // Arguments to pass
options, // The options
cb // Callback
);
Options
Silent
Type: boolean
Default: false
Suppress all messages.
Error log
Type: boolean
Default: false
Show error messages from child_process.execFile
.
CLI
$ npm install -g node-command
$ nand --help
Usage: nand [options] -- <file> [args...]
Options:
-e | --error-log Log errors from child processes
-s | --silent Suppress all messages.
Example
nand -e -- node example.js
License
MIT © legodude17