Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-prowl

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-prowl

Node.js API for prowl, allowing to send PUSH notifications to your iPhone!

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
increased by48%
Maintainers
1
Weekly downloads
 
Created
Source

node-prowl - Prowl for Node.js API

Be happy! Send push notifications to iDevices (iPad, iPhone etc) that has the Prowl iPhone app installed. Simple, easy and clean.

As of now this API supports push and only push.

Installation

npm install node-prowl

or put it in your package.json as usual and hit npm install. It depends on xml2js and request.

Usage

The API requires your API-key, which could be found or created on the "API Keys" tab on the Prowl website.

Initialize it with your key and start pushing!

var Prowl = require('node-prowl');

var prowl = new Prowl('MY-API-KEY');

Now, use the prowl object whenever sending a push:

prowl.push('YO, this is awesomez!', 'My app', function( err, remaining ){
	if( err ) throw err;
	console.log( 'I have ' + remaining + ' calls to the api during current hour. BOOM!' );
});

You can provide more options to the PUSH notification:

prowl.push('YO, this is awesomez!', 'My app', {
	providerkey: 'my-provider-key',
	priority: 2,
	url: 'http://revrise.com'
}, function( err, remaining ){
	if( err ) throw err;
	console.log( 'I have ' + remaining + ' calls to the api during current hour. BOOM!' );
});

Contribute

I´d be happy if you wanted to contribute with pull requests or tips. I´ll add you to the contributors list here and in the package.json file.

Testing

While contributing, make sure to write a test and make it pass if you extend the library. Tests are written in the test directory, preferably in all.js, since its quite small right now. It uses should.js and mocha for tests.

Test by installing mocha and should.js (dev dependencies) and then just hit:

PROWL_KEY=[my key here] make

And voila, it autotests for you.

Happily written during a four hour hack in my apt in Chamonix, France.

Changelog

2020-01-20

  • dxdc contributes with updated tests and fixed response errors

2014-08-31

  • paton contributes with callback fix

2013-05-03

  • mrose17 contributes with error handling fix

2013-02-15 - version 0.1.6

  • Jellyfrog contributes with fixes parameter bugs.
  • Better error handling solving Issue 1

FAQs

Package last updated on 20 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc