stream-mailer

0.1.3 • Public • Published

stream-mailer

Send an email when a regex pattern appear in a stream

NPM

Index

Example

According to config.js, we will find all "hello kitty" strings in any logs files in .weechat folder and send email to kitty@gmail.com

tail ~/.weechat/logs/* | CONFIG_PATH='absolute/path/to/config.js' stream-mailer

Install

npm install stream-mailer -g

Run

CONFIG_PATH='absolute/path/to/config.js' forever start -c sh bin/start-production.sh

TODO

Separate into 2 modules

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i stream-mailer

    Weekly Downloads

    5

    Version

    0.1.3

    License

    BSD

    Last publish

    Collaborators

    • oren