prun

1.0.1 • Public • Published

NPM

Build Status

Comfortable script runner with simple pattern system

Installation

   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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i prun

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • risentveber