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

    bloompublic

    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');
    }
    

    Keywords

    none

    install

    npm i bloom

    Downloadsweekly downloads

    7

    version

    0.5.3

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar