Nostradamus Predicting Maelstroms
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

range-emitter

1.0.20 • Public • Published

range-emitter

range emitter using levelup ranges.

Inspired by multileveldown

js-standard-style build status npm downloads Greenkeeper badge

Sauce Test Status

methods

var re = require('range-emitter')

re.subscribe (range, cb, [resend=false])

range in the format of ltgt

cb callback(key, type) type can be put or delete

resend if true will resend the subscriptions to the server

re.subscribe (key, cb, [resend=false])

key single key to subscribe to

cb callback(key, type) type can be put or delete

resend if true will resend the subscriptions to the server

re.subscribe (cb, [resend=false])

subscribe to all keys

cb callback(key, type) type can be put or delete

resend if true will resend the subscriptions to the server

re.unsubscribe (rangeOrKey, cb)

unsubscribe a range or key

re.publish (key, type)

install

npm i range-emitter

Downloadsweekly downloads

2

version

1.0.20

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability