range-emitter

2.0.0 • 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)

/range-emitter/

    Package Sidebar

    Install

    npm i range-emitter

    Weekly Downloads

    22

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    11.8 kB

    Total Files

    9

    Last publish

    Collaborators

    • jameskyburz