Skip to content

A small Deno utility for interacting with the Pushover Message API.

License

Notifications You must be signed in to change notification settings

malinowskip/push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@malinowskip/push

A small Deno utility for sending Pushover notifications. In order to use the API, it’s necessary to register a user and and application according to the Pushover documentation. A user key and an application token is required to use the API.

This package provides:

  • a TypeScript module exposing a push function, which can be used to send notifications to the Pushover Message API endpoint;
  • a Deno command-line utility which may serve as an alternative to calling the Pushover Message API using curl.

Usage examples

Deno

import { push } from "jsr:@malinowskip/push";

await push({
  user: "YOUR_USERNAME",
  token: "YOUR_TOKEN",
  message: "Hello, world!",
});

CLI

Install

deno install --allow-net -n push jsr:@malinowskip/push/cli

Send a message

push --user <YOUR_USERNAME> --token <YOUR_TOKEN> --message "Hello, world!"

About

A small Deno utility for interacting with the Pushover Message API.

Resources

License

Stars

Watchers

Forks