README
Notifier
Description
Wrapper library intended to manage rchat, hipchat and email notifications. Adopted to use in SEO Booster project.
Testing
npm run test
Installation
npm install @seo-booster/notifier --save
Usage
const notifier = require('@seo-booster/notifier');
notifier.init([
{ name: 'hipchat' },
{
name: 'rchat',
options: { uri, username, password }
},
{
name: 'email',
options: {
service,
auth: { user, pass }
}
}
]);
notifier.send('hipchat', { uri, message[, color, notify, message_format] });
notifier.send('rchat', { roomId, text[, color, alias] });
notifier.send('email', { from, to, subject, text[, html, attachments] });