web-push-subscriber

0.3.0 • Public • Published

A simple library that helps you manage and send subscriptions and unsubscriptions for web push notifications services using leveldb.

How to use

~~~~
export GCM_API_KEY=YOURKEY
var wsub = require( 'web-push-subscriber' );
wsub.subscribe( 'firefox', 'feature', 'token_a' );
wsub.subscribe( 'google', 'feature', 'token_b' );
wsub.ping( 'google', ['token_b'], 'feature' )
wsub.broadcast( 'feature' ) ~~~~

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    1
  • 0.2.2
    0
  • 0.2.0
    0

Package Sidebar

Install

npm i web-push-subscriber

Weekly Downloads

1

Version

0.3.0

License

none

Last publish

Collaborators

  • jdlrobson