1 unstable release

0.1.0 May 2, 2024

#6 in #script-runner

Download history 86/week @ 2024-04-26 42/week @ 2024-05-03 6/week @ 2024-05-17

134 downloads per month

MIT license

14KB
375 lines

Npm Runner

Just nr [script], fastly excute any node's project any script.

Usage: nr <COMMAND>

Commands:
  run      Run any alias script or default
  ls       Show alias script list
  alias    Set alias to map script
  delete   Delete alias
  install  Use the right package manager to install
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Usage

First run, you just need to run.

nr run [alias] [script]

After above, you can use this [alias] to run script directly.

nr run [alias]

Even if alias is empty, just excute it without any thinking!

Just install

nr will use right package manager to instlal dependencies.

nr install
# or
nr install -D [npm_package_name...]

Dependencies

~3–15MB
~138K SLoC