README.md (331B)
1 # moolb.js 2 3 Bloom filter for python with pluggable hasher backend 4 5 ## USAGE 6 7 ``` 8 let assert = require('assert'); 9 10 let ref = b = new moolb.Bloom(8192 * 8, 3); 11 let enc = new TextEncoder(); 12 13 let v = enc.encode('1024'); 14 b.add(v); 15 let r = b.check(v); 16 assert(r); 17 18 v = enc.encode('1023'); 19 r = b.check(v); 20 assert(!r) 21 ``` 22 23 ## LICENSE 24 25 GPL3