Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alexilyaev/runrun-cli

Delightful interactive CLI to quickly run npm scripts.
https://github.com/alexilyaev/runrun-cli

Last synced: 2 days ago
JSON representation

Delightful interactive CLI to quickly run npm scripts.

Awesome Lists containing this project

README

        

# runrun-cli

[![version](https://img.shields.io/npm/v/runrun-cli?style=flat-square)](http://npm.im/runrun-cli)
[![MIT License](https://img.shields.io/npm/l/runrun-cli?style=flat-square)](http://opensource.org/licenses/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square)](http://makeapullrequest.com)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Delightful interactive npm scripts runner.

## Demo

![runrun demo](demo.gif)

## Installation

Try it out with `npx`:

```shell
npx runrun-cli
```

Install globally (enables to execute `rr` and `rrr` anywhere):

```shell
npm install -g runrun-cli
```

## Usage

Interactively choose which script to run from `package.json`:

```shell
rr
```

Re-run last chosen script (same as `rr -r`):

```shell
rrr
```

## CLI Options

### `-h` (or `--help`)

List all CLI options:

```shell
rr -h
```

### `-s` (or `--select`)

Use Prompts select instead of autocomplete (supports vi motion keys):

```shell
rr -s
```

### `-c` (or `--config`)

Path to a `package.json` in a different directory, relative to the current working dir:

```shell
rr -c sub/path/package.json
```

## Contributing

See the [CONTRIBUTING](CONTRIBUTING.md) document.