A CLI tool to browse and execute npm, pnpm, yarn, or bun scripts from a local project.
To install the compiled version of the package run:
go install github.com/mohammedyh/npr@latestImportant
go/bin needs to be in your PATH to be able to run the command.
Add the following to your shell config file: export PATH="$PATH:$HOME/go/bin"
Once installed, simply run npr
Clone the repo:
git clone https://github.com/mohammedyh/nprcd into the directory
cd ~/Dev/nprBuild and output executable
go buildAfter compiling into an executable, you could move the executable file to somewhere suitable in your filesystem and create an alias in your shell to reference it.
For example - if you moved the executable to the .config folder:
alias npr="~/.config/npr"- Display scripts in an interactive list navigable via vim motions or arrow keys
- Auto-detect package manager from npm, pnpm, yarn and bun
- Scripts are sorted in alphabetical order
- Auto-install install dependencies if needed
