@futagoza/node-run

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i @futagoza/node-run

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

3.27 kB

Total Files

4

Last publish

Collaborators

  • ryuu