Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

just-run

yetatore3MIT1.1.2

Just a function that runs shell commands

shell, command, cli, tools, minimal, simple

readme

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