https://github.com/microlinkhq/tinyrun
CLI for executing multiple commands in parallel with minimal footprint (~2KB).
https://github.com/microlinkhq/tinyrun
cli concurrently parallel process
Last synced: 4 months ago
JSON representation
CLI for executing multiple commands in parallel with minimal footprint (~2KB).
- Host: GitHub
- URL: https://github.com/microlinkhq/tinyrun
- Owner: microlinkhq
- License: mit
- Created: 2024-07-31T16:02:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-21T09:05:26.000Z (over 1 year ago)
- Last Synced: 2024-11-02T10:08:19.313Z (over 1 year ago)
- Topics: cli, concurrently, parallel, process
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README

[](https://coveralls.io/github/microlinkhq/tinyrun)
[](https://www.npmjs.org/package/tinyrun)
**tinyrun** executes multiple commands in parallel with minimal footprint (~2KB).
It can run one-off commands:
```
tinyrun "pnpm build" "pnpm build:docs"
```
or commands that keep running in background:
```
tinyrun --names "HTTP" "node examples/server.js"
HTTP started pid=13030
HTTP Server is listening on port 3000
c^CHTTP Received shutdown signal, shutting down gracefully...
HTTP Closed out remaining connections
HTTP cmd='node examples/server.js' exitCode=0 signalCode=null duration=2s
```
## Install
```bash
npm install tinyrun --global
```
## Usage
### as CLI
Just `tinyrun --help` to see all the options availables.
### as module
Check [how CLI is implemented](/bin/index.js) to see how it's interacting with the core module.
## Related
- [tinyspawn](https://github.com/Kikobeats/tinyspawn) – A minimalistic wrapper around Node.js `child_process.spawn` API.
## License
**tinyrun** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/microlinkhq/tinyrun/blob/master/LICENSE.md) License.
Inspired by [Stanko Tadić](https://muffinman.io/blog/node-script-to-run-multiple-commands-in-parallel/). Authored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/microlinkhq/tinyrun/contributors).
> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/kikobeats) · Twitter [@kikobeats](https://twitter.com/kikobeats)