0.3.0 • Published 8 years ago

scripy v0.3.0

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

scripy NPM version NPM downloads Build Status

Run scripts in child process.

preview

Install

$ npm install --save scripy

Usage

const scripy = require('scripy')

const build = scripy('npm run build')
const start = scripy('npm start')

// if you want to kill each other
build.on('close', () => start.kill())
start.on('close', () => build.kill())

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

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago