spawn-sync

    2.0.0 • Public • Published

    spawn-sync

    This used to be a polyfill for require('child_process').spawnSync but now all actively maintained node versions already support spawnSync, so this is just a stub that re-exports spawnSync.

    Usage

    You should remove this library from your dependencies and just do:

    var spawnSync = require('child_process').spawnSync;
     
    var result = spawnSync('node',
                           ['filename.js'],
                           {input: 'write this to stdin'});
     
    if (result.status !== 0) {
      process.stderr.write(result.stderr);
      process.exit(result.status);
    } else {
      process.stdout.write(result.stdout);
      process.stderr.write(result.stderr);
    }

    License

    MIT

    Keywords

    none

    Install

    npm i spawn-sync

    DownloadsWeekly Downloads

    816,573

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • bengl
    • forbeslindesay
    • leobalter
    • satazor