Is it npm test or was it pnpm test:watch?!
TUI to list, search, run or copy package.json scripts.
Useful in monorepos, in packages with many commands or when jumping between projects.
Will use the correct package manager: npm, pnpm, yarn or bun.
rum # List scripts in the current folder in a TUI
rum ./modules/thing/ # List scripts in the folder
rum /code/project/package.json # List scripts in the package.json file
run -l [optional path] # List scripts and quit (non-interactive)
rum -h # Show helpIn the TUI:
Press Enter to run the selected command. This will cd into the correct folder, run the script using
the correct package manager and show you the output.
Press c to copy the "run" command to the clipboard (e.g. "npm run lint:fix") and quit. You can then paste it
into your terminal and run or edit the command. This way the command can be added to your shell history.
Press shift+c to copy the actual script to the clipboard (e.g. "oxlint --fix") and quit.
The clipboard might not be supported on all platforms.
# If you have npm :-)
npm i -g @thekarel/rum
# If you have npm and love delays
npx @thekarel/rum
# If you have go https://go.dev/doc/install
go install github.com/thekarel/rum@latest
# if you have eget https://github.com/zyedidia/eget
eget thekarel/rumRepo: https://github.com/thekarel/rum
