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

https://github.com/alexzhang1030/npms

a cli shows and executes your project npm scripts
https://github.com/alexzhang1030/npms

Last synced: 3 months ago
JSON representation

a cli shows and executes your project npm scripts

Awesome Lists containing this project

README

        

# NPMS(cripts)

a CLI shows and executes your project npm scripts

## Installation

```bash
pnpm install @alexzzz/npms
```

## Usage

```bash
# in your package root
npms
```

### List all scripts

then, you could see these things on your terminal:

![usage](screenshots/usage-01.gif)

We support recursively get `package.json` scripts.

You can press `` and `` to switch packages.

### Execute scripts (WIP)

- Press `` and `` to select a script.
- Press `` to execute the script.

![usage](screenshots/usage-02.gif)

Now you can only execute it, but actually, the behavior is a little weird.

So this feature is still under in development.

## Known Issues

- [ ] if packages too many, packages'tab will squeeze it together
- [ ] if scripts too many, scripts container could not scroll

These behaviors are caused by TEMir, and i maybe will make pr then.

## Next Step

- [ ] fix known issues
- [ ] support config
- [ ] show cli help command

## License

MIT, alexzhang1030

## Reference

- [temir](https://github.com/webfansplz/temir)