Skip to content
/ nr Public

Fastly use `npm` to excute any script without thinking. ๐Ÿš€

Notifications You must be signed in to change notification settings

liwuhou/nr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Npm Runner

"sh*t, I excue npm start script in vue-cli project again!"
Just nr [script], fastly excute any node's project any script.

๐ŸŒไธญๆ–‡ๆ–‡ๆกฃ

Example

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

Feature ๐Ÿš€

Npm Run

Firstly run, you just need to run. nr will use right package manage to run the npm's script.

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!

[alias] is empty or -, will run the default alias.

Npm Install

nr will use right package manager to instlal dependencies.

nr install
# npm install
# yarn install
# pnpm install
nr install -D [npm_package_name...]
# npm install -D ...
# yarn add -D ...
# pnpm add -D ...

Installtion ๐Ÿ‹๏ธโ€โ™‚๏ธ

Using Cargo ๐Ÿฆ€ (Linux/MacOS/Windows)

cargo add nr

Using a release binary (Linux/MacOS/Windows)

  • Download the latest release binary for your system
  • Make it available globally on PATH environment variable
  • Enjoy!

Homebrew ๐Ÿบ (MacOS/Linux)

brew tap liwuhou/formulae

brew install liwuhou/formulae/nr

Scoop (Windows)

Comming soon

About

Fastly use `npm` to excute any script without thinking. ๐Ÿš€

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages