0.2.0 • Published 9 years ago

simple-command v0.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

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