This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

spawn-run

0.0.6 • Public • Published

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);
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i spawn-run

    Weekly Downloads

    3

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • npm