spawn-command
Spawn commands like `child_process.exec` does but return a `ChildProcess`
Last updated 11 years ago by mmalecki .
MIT · Repository · Bugs · Original npm
$ cnpm install spawn-command 
SYNC missed versions from official npm registry.

spawn-command Build Status

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

Current Tags

  • 0.0.2-1                                ...           latest (11 years ago)

2 Versions

  • 0.0.2-1                                ...           11 years ago
  • 0.0.2                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org