@ghalldev/bzzz
v0.1.2
Published
A minimal package for sending push notifications with [brrr](https://brrr.now/), by Simon B. Støvring.
Readme
bzzz
A minimal package for sending push notifications with brrr, by Simon B. Støvring.
Usage
Sending a simple notification
Sending a basic notification is simple.
import Bzzz from 'bzzz'
const bzzz = new Bzzz("YOUR_BRRR_SECRET")
await bzzz.notify("Hello World!")Sending a custom notification
You can optionally pass an object to the notify() method containing at least a title and message.
import Bzzz from 'bzzz'
const bzzz = new Bzzz("YOUR_BRRR_SECRET")
await bzzz.notify({
title: "Hello World",
message: "Howdy there.",
});