@seo-booster/notifier
v0.0.8
Published
Wrapper chat and email notifiers used in @seo-booster project
Readme
Notifier
Description
Wrapper library intended to manage rchat, hipchat and email notifications. Adopted to use in SEO Booster project.
Testing
npm run testInstallation
npm install @seo-booster/notifier --saveUsage
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] });
