Skip to content

Spawn commands like `child_process.exec` does but return a `ChildProcess`.

License

Notifications You must be signed in to change notification settings

mmalecki/spawn-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spawn-command

Spawn commands like child_process.exec does but return a ChildProcess.

Installation

npm install spawn-command

Usage

var spawnCommand = require('spawn-command'),
    child = spawnCommand('echo "Hello spawn" | base64');

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

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

About

Spawn commands like `child_process.exec` does but return a `ChildProcess`.

Resources

License

Stars

Watchers

Forks

Packages

No packages published