@cityssm/ntfy-publish
Version:
A Node package to publish notifications to an ntfy server.
38 lines (28 loc) • 1.68 kB
Markdown
# node-ntfy-publish
[](https://www.npmjs.com/package/@cityssm/ntfy-publish)
[](https://codeclimate.com/github/cityssm/node-ntfy-publish)
[](https://codecov.io/gh/cityssm/node-ntfy-publish)
[](https://github.com/cityssm/node-ntfy-publish/actions/workflows/coverage.yml)
[](https://app.deepsource.com/gh/cityssm/node-ntfy-publish/)
A Node package to publish push notifications to a phone or desktop
through an [ntfy](https://ntfy.sh/) server.
## Getting Started
```bash
npm install @cityssm/ntfy-publish
```
```javascript
import ntfyPublish from '@cityssm/ntfy-publish'
await ntfyPublish({
topic: 'cityssm-test',
priority: 'high',
title: 'Test High Priority Message',
message: '1, 2, 3',
tags: ['warning', 'computer'],
iconURL: 'https://avatars.githubusercontent.com/cityssm',
clickURL: 'https://github.com/cityssm/node-ntfy-publish'
})
```
For information on how to subscribe to notifications on your phone or desktop,
[visit the ntfy website](https://ntfy.sh/).
## Related Projects on NPM
- [ntfy](https://www.npmjs.com/package/ntfy) - Send notifications over ntfy.sh