JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3221459
  • Score
    100M100P100Q203741F
  • License MIT

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

Package Exports

  • spawn-command
  • spawn-command/lib/spawn-command.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spawn-command) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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