This repository has been archived on 2026-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
todo/node_modules/spawn-command
2025-06-13 14:04:40 +08:00
..
examples Initial commit 2025-06-13 14:04:40 +08:00
lib Initial commit 2025-06-13 14:04:40 +08:00
test Initial commit 2025-06-13 14:04:40 +08:00
.npmignore Initial commit 2025-06-13 14:04:40 +08:00
.travis.yml Initial commit 2025-06-13 14:04:40 +08:00
LICENSE Initial commit 2025-06-13 14:04:40 +08:00
package.json Initial commit 2025-06-13 14:04:40 +08:00
README.md Initial commit 2025-06-13 14:04:40 +08:00

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