1.0.4 • Published 9 years ago

nprocess v1.0.4

Weekly downloads
14
License
-
Repository
-
Last release
9 years ago

nprocess

Build Status

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