just-run

1.1.2 • Public • Published

just-run

NPM

Just a javascript function that runs shell commands asynchronously!

Instalation

$ npm install --save-dev just-run

Usage

Call the function with the following parameters:

  1. A description which is printed in stdout
  2. The actual command
  3. 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.

License

MIT

Package Sidebar

Install

npm i just-run

Weekly Downloads

5

Version

1.1.2

License

MIT

Last publish

Collaborators

  • yetatore