@momsfriendlydevco/send

1.0.2 • Public • Published

@MomsFriendlyDevCo/Send

Simple notification system with extendable modules.

import Send from '#lib/send';
new Send()
    .use('slack', {
        enabled: false,
        // ... Slack config goes below here ... //
        token: 'FIXME',
        channel: 'FIXME',
        username: 'FIXME',
    })
    .use('freedcamp', {
        enabled: false,
        // ... Freedcamp config goes here ... //
        apiKey: 'FIXME',
        secret: 'FIXME',
        projectId: 'FIXME',
        discussionListTitle: 'FIXME',
        discussionListId: 'FIXME',
    })
    .send('Hello World')

... or via the cli ...

send \
    -m slack@token=FIXME,channel=FIXME,username=FIXME \
    -m freedcamp@apiKey=FIXME,secret=FIXME,projectId=FIXME,discussionListTitle=FIXME \
    --text "Hello World"

Readme

Keywords

none

Package Sidebar

Install

npm i @momsfriendlydevco/send

Weekly Downloads

0

Version

1.0.2

License

none

Unpacked Size

16 kB

Total Files

12

Last publish

Collaborators

  • hash-bang
  • 1watt
  • eekthecat
  • melromero
  • mr-yellow