Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simply start a new process from a Node script

Resources

Stars

0 stars

Watchers

47 watching

Forks

Releases

Packages

Used by

Contributors

Languages