@hhaluk/pigeon

1.0.13 • Public • Published

Pigeon

Pigeon is a collection of commonly used webhooks.

Supported Notification Channels

  • [x] Google Chat
  • [x] Slack
  • [X] Telegram
  • [X] Private
  • [ ] Discord
  • [ ] Sendgrid
  • [ ] Ses
  • [ ] Mailgun

Usage

$ npm install --save @hhaluk/pigeon
import * as Pigeon from '@hhaluk/pigeon'

function foo () {
  Pigeon.NotifyGoogleChat(body) // pigeon can obtain url from environment. See Api Reference Table.
  Pigeon.NotifySlackChannel(body, url) // alternatively url can be injected directly.
}

Api Reference Table

Method Arguments Environment Variable
NotifyGoogleChat body, url GOOGLE_CHAT_API_URL
NotifySlackChannel body, url SLACK_API_URL
NotifyTelegramChannel body, url TELEGRAM_API_URL
NotifyPrivateChannel body, url PRIVATE_API_URL

Api References

/@hhaluk/pigeon/

    Package Sidebar

    Install

    npm i @hhaluk/pigeon

    Weekly Downloads

    1

    Version

    1.0.13

    License

    MIT

    Unpacked Size

    111 kB

    Total Files

    7

    Last publish

    Collaborators

    • hhaluk