1.1.2 • Published 8 years ago
just-run v1.1.2
just-run
Just a javascript function that runs shell commands asynchronously!
Instalation
$ npm install --save-dev just-run
Usage
Call the function with the following parameters:
- A description which is printed in stdout
- The actual command
- Callback
var run = require("just-run");
run("LINT | lib", "jslint lib/*.js");
run("CP | assets", "cp -r web/assets/ public/", function onFinish() {
console.log("Copy finished");
});
NOTE: It's expected to be only used in the development toolbox, not in the actual code.