stream-mailer
v0.1.3
Published
Send an email when a regex pattern appear in a stream
Downloads
2
Readme
stream-mailer
Send an email when a regex pattern appear in a stream
Install
npm install stream-mailer
Configure pattern to search for and Email credentials (config.js)
cp config.example.js config.js
Usage
According to config.js, we will find all "hello kitty" strings in any logs files in .weechat folder and send email to [email protected]
tail .weechat/logs/* | node server.js
Run as daemon
forever start -c sh bin/start-production.sh