2.0.0 • Published 6 years ago

spawn-bin v2.0.0

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

spawn-bin

Build Status Greenkeeper badge version

Spawns a new Node process that runs the bin file of a given package.

API

spawnBin(bin, args, [opts])

Same as API as child_process.spawnSync with bin being resolved first.

If the name of the executable does not equal the package name you can use the format <package>:<executable>:

spawnBin('flow-bin:flow', ['.']);

Note: The stdio option is set to 'inherit' by default.

License

MIT