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
npm install tinyrun --global
Just tinyrun --help
to see all the options availables.
Check how CLI is implemented to see how it's interacting with the core module.
- tinyspawn – A minimalistic wrapper around Node.js
child_process.spawn
API.
tinyrun © Kiko Beats, released under the MIT License.
Inspired by Stanko Tadić. Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @kikobeats