#package-manager

bin+lib nr

A npm script runner

1 unstable release

0.1.0 May 2, 2024

#152 in #package-manager

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

~4–16MB
~147K SLoC