1.0.1 • Published 1 year ago

@sticksdev/notifer v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

notifer

A simple libary to interface with an NTFY/our own notification server.

Features

x Publish notifications [] Subcribe to a channel and listen to it's notifications

Usage

Useage is really simple, just import the libary and use the publish function to send a notification to a channel.

const { notifer } = require('@sticksdev/notifer')

const client = new notifer() // A url can also be passed here, if not, it defaults to our instance (notify.hep.gg)
client.REST.publishNotification('channelname', "test message", "Test Notification").then((res) => {
    console.log(res) // Returns an APIBaseResponse or IAPIErrorResponse
})

All options and types are documented in the code, so you can use your IDE to get the types and option. If you have any questions/suggestions/bugs, feel free to open an issue.

1.0.1

1 year ago

1.0.0

1 year ago