Skip to content

thekarel/rum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rum

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.

Usage

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 help

In 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.

Install

Attestations

# 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/rum

About

Repo: https://github.com/thekarel/rum

Issues: https://github.com/thekarel/rum/issues

Gif

Demo

About

TUI to list, search and run package.json scripts 🥃

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages