Simple bloomfilter nodejs extension
C++ Python JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
Makefile
README.md
index.js
package.json

README.md

Bloom Filters for Node

This is a simple node binding of Arash Partow's wonderful bloom filter library.

Example Usage

npm install bloom

Quick example:

var BloomFilter = require('bloom').BloomFilter;
var mytester = new BloomFilter(1000);

mytester.insert('apple');
mytester.insert('orange');

if (mytester.contains('apple')) {
  console.log('apple is in our bit table');
}

if (!mytester.contains('squash')) {
  console.log('squash is not in our bit table');
}