Skip to content
Interactive runner for npm scripts, inspired by https://github.com/hawkins/interactive-scripts
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
.gitignore
.npmignore
.prettierrc
README.md
index.js
package.json
yarn.lock

README.md

npm-script-prompt

An interactive runner for a npm project package.json scripts, inspired by interactive-scripts by Josh Hawkins.

Installation

Install globally:

npm i -g npm-script-prompt

Or, run with npx: npx npm-script-prompt.

Usage

Install the package globally and then run run in an npm project. Choose the npm script you want to run and hit enter!

Example output prompt for for this repo:

- 5 scripts found for npm-script-prompt 📟

? Select an npm script to run (Use arrow keys)
❯ test            - node index.js
  command:one     - echo "Running an example command..."
  command:two     - echo "Running an example command..."
  command:three   - echo "Running an example command..."
  (quit-prompt)   - Quit the prompt and exit
You can’t perform that action at this time.