JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q36137F
  • License MIT

This is a lightweight library to send notifications to discord

Package Exports

  • paper-pigeon

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (paper-pigeon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Installation

npm i paper-pigeon

Live Demo

Discord Usage

import { Discord } from 'paper-pigeon';

const send = new Discord("WEBHOOK_URL");
send.message("Starting server!");
send.success("Data loaded from API");
send.error("Failed to load resource");

Get Discord Webhook URL

Open Discord -> Integrations -> Create Webhook -> Copy Webhook URL

Slack Usage

import { Slack } from 'paper-pigeon';

const send = new Slack("WEBHOOK_URL");
send.message("Starting server!");
send.success("Data loaded from API");
send.error("Failed to load resource");

Get Slack Webhook URL

Create Slack App -> Add incoming webhooks feature -> Activate Webhook -> Add new webhook -> Copy webhook URL

Demo

Live Demo

demo