Skip to content

Simple notification system with extendable modules

License

Notifications You must be signed in to change notification settings

MomsFriendlyDevCo/send

Repository files navigation

@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"

About

Simple notification system with extendable modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published