0.1.1 • Published 8 years ago

run-commands v0.1.1

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

run-commands npmjs.com The MIT License

Cross-platform running a series of commands or in parallel flow. Run commands in OS X, Linux and even Windows!

code climate standard code style travis build status coverage status dependency status

Install

npm i run-commands --save

Usage

For more use-cases see the tests

const runCommands = require('run-commands')

runCommands

Run commands in series by default, pass options.parallel: true to run them on parallel.

Params

  • cmd {String|Array}
  • args {String|Array|Object|Function=}
  • options {Object|Function=}
  • callback {Function}
  • returns {Stream}

.series

Run commands in series. Alias for runCommands.

Params

  • cmd {String|Array}
  • args {String|Array|Object|Function=}
  • options {Object|Function=}
  • callback {Function}
  • returns {Stream}

.parallel

Run commands in parallel.

Params

  • cmd {String|Array}
  • args {String|Array|Object|Function=}
  • options {Object|Function=}
  • callback {Function}
  • returns {Stream}

Signatures

runCommands(String, String, Object, Function)
runCommands(String, Array, Object, Function)
runCommands(String, Object, Function)
runCommands(String, Function)
runCommands(Array<String|Object>, Object, Function)
runCommands(Array<String|Object>, Function)

Related

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckoCore.tk keybase tunnckoCore tunnckoCore npm tunnckoCore twitter tunnckoCore github