Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 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');
}
Something went wrong with that request. Please try again.