An open API service indexing awesome lists of open source software.

https://github.com/alek-s/select-run

A CLI tool to interactively search & select one or many package.json npm scripts to run
https://github.com/alek-s/select-run

cli command-line commandline javascript node npm npm-scripts package-json

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 💻🏃‍♂️ select-run
[![npm version](https://badge.fury.io/js/select-run.svg)](https://badge.fury.io/js/select-run)

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

![example](./demo/demo.gif)

## 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 `` 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 `` to submit selections and begin running the scripts.

Inspired by [hawkins/interactive-scripts](https://github.com/hawkins/interactive-scripts)