Nestable Processes Mutate

npm

Need private packages and team management tools?Check out npm Orgs. »

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' ) ~~~~

Keywords

none

install

npm i web-push-subscriber

Downloadsweekly downloads

1

version

0.3.0

license

none

last publish

collaborators

  • avatar
Report a vulnerability