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

1.1.2 • Public • Published

pushover.js

npm GitHub Donate

node.js API wrapper for Pushover with Typescript support

Installation

yarn add @stingalleman/pushover.js # or npm install @stingalleman/pushover.js

Example

const { Pushover } = require("../dist/index");

const pushover = new Pushover("APPLICATION-TOKEN");

async function init() {
  await pushover.message.send("This is a notification title!", {
    message: "Sick notification",
    user: "USER-TOKEN"
  });
}

init();

You're also able to set a default user token:

const { Pushover } = require("../dist/index");

const pushover = new Pushover("APPLICATION-TOKEN", "USER-TOKEN");

async function init() {
  await pushover.message.send("This is a notification title!");
}

init();

Documentation is located here

Why that stupid name?

Because NPM threw this error at me:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/pushover.js - Package name too similar to existing packages; try renaming your package to '@stingalleman/pushover.js' and publishing with 'npm publish --access=public' instead

Package Sidebar

Install

npm i @stingalleman/pushover.js

Weekly Downloads

0

Version

1.1.2

License

GPL-3.0

Unpacked Size

45.9 kB

Total Files

30

Last publish

Collaborators

  • stingalleman