simple-command

0.2.0 • Public • Published

simple-command

Simply start a new process from a Node script.

usage

Get it: npm install --save simple-command

Use it:

var SimpleCommand = require('simple-command');
 
var greptest = new SimpleCommand('grep', ['sh', '-r', '/usr/bin'], '/');
greptest.run(function () {
    greptest.setOptions({
        record: 'greptest-console-output-copy.txt',
        redirect: 'greptest-command-output.txt',
        progress: 5
    });
    greptest.run();
});
 
var npmupdate = new SimpleCommand('npm', ['update'], './');
npmupdate.run({record: 'copy-of-npm-output.txt'}, function (code) {
    console.log('complete with return code', code);
});

docs

Generated API docs

Package Sidebar

Install

npm i simple-command

Weekly Downloads

0

Version

0.2.0

License

ISC

Last publish

Collaborators

  • seanpk
  • seanpkps