1.2.2 • Published 9 years ago

node-command v1.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

node-command Build Status Dependency Status

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