Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 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

Bind and run a script in one command; the mapping is saved for the current project:

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 install --git https://github.com/liwuhou/nr.git nr

Using a release binary (Linux/MacOS/Windows)

  • Download the latest release binary for your system.
  • Extract the Linux or macOS .tar.gz archive, then make nr available on your PATH.
  • Run the Windows .exe directly or add it to your PATH.

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

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages