2.0.0 • Published 7 years ago

@futagoza/node-run v2.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

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.


History license

@futagoza/node-run is Copyright (c) 2018+ Futago-za Ryuu

2.0.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago