Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

CapsuleCat/ReactiveBloomFilter

Repository files navigation

Reactive Bloom Filters

Buy Me a Cup of Coffee

Reactive client side bloom filters for Meteor.

Installation

meteor install capsulecat:reactive-bloom-filter

Usage

// Create a Bloom Filter:
Words = new BloomFilter({
    name: 'words',
    size: 100 // Optional and defaults to 100
});

// Insert some words into it
Words.insert('bloom');
Words.insert('filter');

You can use the Bloom Filter similarly to how you would use a Mongo Collection:

// Bind the Bloom Filter to items
Template.list.helpers({
    items: function () {
        return Words.check(['test']);
    }
});

.check(Array<String>) return an array of objects with a key and an in value:

Words.check(['test']) === [
    {
        'key': 'test',
        'in': true
    }
]

About

Reactive client side bloom filters for Meteor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published