0.0.6 • Published 7 years ago

spawn-run v0.0.6

Weekly downloads
16
License
MIT
Repository
github
Last release
7 years ago

spawn-run Build Status

You can execute commands in node_modules/.bin/ like npm run, return child_process.

Installation

npm install spawn-run --save-dev

Usage

var spawnRun = require('spawn-run')
var child = spawnRun(command, [options])

command like exec, and options like child_process.spawn, return child_process

Example

var spawnRun = require('spawn-run');
var child = spawnRun('echo "Hello spawn" | base64');

child.stdout.on('data', function (data) {
  console.log('data', data);
});

child.on('exit', function (exitCode) {
  console.log('exit', exitCode);
});
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago