
# run-on-output
*Execute tasks when CLI output patterns are detected*
[](https://github.com/sinedied/run-on-output/actions)
[](https://www.npmjs.com/package/run-on-output)
[](https://nodejs.org)
[](https://github.com/xojs/xo)
[](LICENSE)
⭐ If you like this project, star it on GitHub!
[Features](#features) • [Installation](#installation) • [Usage](#usage) • [Examples](#examples)
A lightweight Node.js CLI tool that monitors command output in real-time and triggers actions when specific patterns are found. Perfect for automation workflows, development environments, and CI/CD pipelines.
## Features
- 🎯 **Pattern Matching** - Monitor stdout/stderr for regex patterns or plain strings
- ⚡ **Real-time Monitoring** - Output is forwarded in real-time while monitoring
- 🔧 **Flexible Actions** - Display messages or execute commands when patterns match
- 📝 **Multiple Patterns** - Wait for multiple patterns before triggering actions
- 🚀 **Zero Dependencies** - Built with Node.js built-in modules only
## Installation
```bash
npm install -g run-on-output
```
Or use without installing:
```bash
npx run-on-output [options]