Whoaa512 / simple-spawner

Spawn a command and pipe the output back to std{in,out,err}

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-spawner

Spawn a command and pipe the output back to stdin, stdout, and stderr, and returns the stream

Also accepts child_process.spawn options

Installation

npm install simple-spawner --save

Usage

var spawner = require('simple-spawner')
  , cmd = 'ls'
  , args = ['-a', '-l']

spawner(cmd, args, /*, options*/)

License

MIT

About

Spawn a command and pipe the output back to std{in,out,err}

License:MIT License


Languages

Language:JavaScript 100.0%