Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsthatguy/run-command
Run synchronous shell commands from within node
https://github.com/itsthatguy/run-command
Last synced: about 6 hours ago
JSON representation
Run synchronous shell commands from within node
- Host: GitHub
- URL: https://github.com/itsthatguy/run-command
- Owner: itsthatguy
- Created: 2014-07-16T22:28:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-13T04:19:05.000Z (over 9 years ago)
- Last Synced: 2024-11-05T16:18:40.302Z (11 days ago)
- Language: JavaScript
- Size: 258 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run Commands
Run synchronous shell commands from within node
### Simple Example
```coffee
# postinstall.coffeerunCommand = require("run-command")
runCommand "bower", ['install'], ->
runCommand "gulp"
```### Slightly more Advanced Example
```coffee
# start.coffeerunCommand = 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
```coffee
runCommand.set('info', false) # turn off info messages
runCommand.set('warning', false) # turn off warning messages
runCommand.set('error', false) # turn off error messages
```