runrc
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

RunRC

Configurable per-directory command aliases and scripts.

Installation

Deno

deno install -A -n runrc -f https://deno.land/x/runrc/src/main.ts

NPM

npm install -g runrc

Usage

RunRC allows the configuration of custom, parameterised commands, per directory. To get started, run:

runrc init

This will create a .runrc file in the current working directory. This will contain an example configuration, which you can edit as needed.

The example configuration generated by init contains a hello command. You can run it like this:

runrc hello World
Hello World!

Templating

You can use the following templating expressions:

  • {#} - number of arguments
  • {1} - first argument
  • {-1} - last argument
  • {..} - all arguments
  • {1..} - all arguments after the first
  • {..2} - all arguments up to the second
  • {1..3} - arguments 2 to 4

Readme

Keywords

none

Package Sidebar

Install

npm i runrc

Weekly Downloads

10

Version

1.0.1

License

MIT

Unpacked Size

266 kB

Total Files

121

Last publish

Collaborators

  • bcheidemann