@seo-booster/notifier

Wrapper chat and email notifiers used in @seo-booster project

Usage no npm install needed!

<script type="module">
  import seoBoosterNotifier from 'https://cdn.skypack.dev/@seo-booster/notifier';
</script>

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] });