1.0.2 • Published 9 years ago

run-command v1.0.2

Weekly downloads
5
License
MIT
Repository
-
Last release
9 years ago

Run Commands

Run synchronous shell commands from within node

Simple Example

# postinstall.coffee

runCommand = require("run-command")

runCommand "bower", ['install'], ->
  runCommand "gulp"

Slightly more Advanced Example

# start.coffee

runCommand = require("run-command")

console.log(">> NODE_ENV: " + process.env.NODE_ENV)

runCommand("coffee", ['app.coffee'])

if (process.env.NODE_ENV == "development")
  runCommand "gulp", ['watch-pre-tasks'], ->
    runCommand("gulp", ['watch'])

Configuration

runCommand.set('info', false)    # turn off info messages
runCommand.set('warning', false) # turn off warning messages
runCommand.set('error', false)   # turn off error messages
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.2.4

9 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago