@futagoza/node-run
v2.0.0
Published
Will run 'child_process.spawn()' wrapped in a Promise.
Downloads
5
Maintainers
Readme
Will run child_process.spawn()
wrapped in a Promise
that is only resolved when the spawned process closes. All output by default is sent to the current process via options.stdio = "inherit"
.
This module has been integrated into @futagoza/child-process, and this one (@futagoza/node-run) exports the run method exported from @futagoza/child-process.
example
const run = require( "@futagoza/node-run" );
run( "npm", [ "publish", "--access", "public" ] );
run( "npm", { args: [ "publish", "--access", "public" ] } );
run( "npm publish --access public" );
history
This package was created to help develope wrapper tasks in Gulp (gulpfile.js
to be more precise) that execute an external process. It was orignally a simple wrapper around child_process.spawn()
, but was rewrote to be more like @ahmadnassri/spawn-promise and optionally support input.
@futagoza/node-run is Copyright (c) 2018+ Futago-za Ryuu