Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including prun with all npm packages installed. Try it out:

var prun = require("prun")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

prun v1.0.1

Comfortable scripts runner that supports simple templates


Build Status

Comfortable script runner with simple pattern system


   npm install prun

This package is tested on node >= 4.0.

Get started

Scripts defenitions stored in scripts.json at root directory via array of "script" objects.

They support simple pattern system like <%param%> in the name of script to be executed.

    "name": "command:<%param%>",
    "command": "echo <%param%> $SOME_ENV_VARIABLE",
    "env": {
      "SOME_ENV_VARIABLE": "env<%param%>"

For example:

   prun comand:test

results to be executed

   echo test envtest

Priority of matched command is defined by order of command pattern in scripts.json: the first matched is executed.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free