An interactive CLI tool that allows you to search and execute npm scripts from package.json with fuzzy search functionality and keyboard navigation.
- Interactive Interface: Built with Ink (React for CLI) for a smooth experience
- Fuzzy Search: Quickly find scripts by typing partial names
- Smart Hook Script Filtering: Hides npm lifecycle hooks by default
- Automatically hides scripts you rarely run manually (
preinstall,postinstall,prepare,version, etc.) - Press
Tabto toggle visibility of hook scripts
- Automatically hides scripts you rarely run manually (
npm install --global @masa-shin/runnpx @masa-shin/runSimply run the command in any directory with a package.json:
# If installed globally
run
# Or using npx
npx @masa-shin/runTo show hook scripts from startup:
# Show hook scripts by default
run --show-hooks
# or short form
run -s# Install dependencies
npm install
# Build the project
npm run build
# Development with watch mode
npm run dev
# Run tests
npm run test
# Lint code
npm run lint
npm run lint:fix
# Format code
npm run format- Node.js >= 16
- A package.json file with scripts in the current directory
MIT