Skip to content

A CLI tool to interactively search & select one or many package.json npm scripts to run

License

Notifications You must be signed in to change notification settings

Alek-S/select-run

Repository files navigation

💻🏃‍♂️ select-run

npm version

A CLI tool to interactively select one or many package.json npm scripts to run.

example

Purpose

If you have multiple linters, formatters or tests scripts that you want to run together with limited typing. Alternatively if you want to run server in dev or watch mode but don't remember the exact command, can just use fuzzy search to quickly find and run it.

Installation

npm i -g select-run

Usage

Once installed globally, run select-run from same directory that package.json is located.

Use arrow keys to navigate up and down the list and <space> to select a script. Likewise start typing anytime to filter list down in a real-time search. When all desired script have been selected, press <return> to submit selections and begin running the scripts.

Inspired by hawkins/interactive-scripts