scripy
Run scripts in child process.
Install
$ npm install --save scripy
Usage
const scripy = const build = const start = // if you want to kill each otherbuildstart
API
scripy(command, [options])
command
Type: string
The command to excute, it's passed as args to child_process.spawn
.
options
displayName
Type: string
The name to display while loggin messages into the console, default is the parsed script name from command
. eg: npm run build
's scriptName and displayName both are npm
.
scripy.sync(command, [options])
Same as scripy()
but using spawn.sync
.
License
MIT © EGOIST