Ninja Programmers Mindmeld
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    spawn-commandpublic

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

    Keywords

    none

    install

    npm i spawn-command

    Downloadsweekly downloads

    132,194

    version

    0.0.2-1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar