@hyperlink/pushover
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Pushover Client

A simple lightweight client for Pushover notifications.

Installation

npm install @hyperlink/pushover

Usage

import { Pushover } from '@hyperlink/pushover';

async function sendMessage() {
  const pushover = new Pushover('<YOUR TOKEN>', '<USER TOKEN>');
  await pushover.sendMessage({
    message: 'Test message',
    title: 'Test title',
  });
}

sendMessage();

Message Format

interface PushoverMessage {
    message: string;
    title?: string;
    sound?: string;
    device?: string;
    priority?: number;
    url?: string;
    url_title?: string;
    attachment?: string; // path to the file
    timestamp?: string;
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i @hyperlink/pushover

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.42 kB

Total Files

5

Last publish

Collaborators

  • hyperlink