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.