nprocess
v1.0.4
Published
run unix command in nodejs
Downloads
9
Readme
nprocess
Installation
Install with npm:
npm install --save nprocess
Usage
run single command
var nprocess = require('../nprocess')
nprocess
.run(['echo', something'])
.then(console.log)
// 'something'
run multiple commands
var nprocess = require('../nprocess')
var commands = [
["echo", "hey"],
["echo", "ho"],
["echo", "let's go"],
]
return nprocess
.runMulti(commands)
.then(console.log)
// [ 'hey', 'ho', 'let\'s go' ]
Testing
From the repo root:
npm install
npm test