Gathering detailed insights and metrics for bloomkvs
Gathering detailed insights and metrics for bloomkvs
Gathering detailed insights and metrics for bloomkvs
Gathering detailed insights and metrics for bloomkvs
npm install bloomkvs
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7 Commits
2 Watching
1 Branches
1 Contributors
Updated on 26 Jan 2016
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
100%
2
Compared to previous week
Last month
100%
4
Compared to previous month
Last year
-47%
70
Compared to previous year
1
npm i --save bloomkvs
var BFilter = require('bloomkvs');
var options = {
}
var arrayOfStrangers = [
{id:'12839e1280',name:'Natan'},
{id:'123e291280',name:'Ivan'},
{id:'1ZYdd91280',name:'Plato'}
]
/**
* BloomFilter(keyName,dbGetter,dbSetter,options,callback);
* params to pass:
* keyName {string} (required)- used to save and retrieve bloomfilter from database
* dbGetter = function(key,callback) (required)
* dbSetter = function(key,value) (required)
* options = {size: <filter size> , hashes: <number of functions> }, by default is 8kb in size with 16 functions,
* You can pass null if default values suits Your aim.
* callback = function(aFilter) is called when bloomfilter is ready to serve Your needs
*/
var bFilter = new BFilter('weStoreFilterWithThisKey', yourDBMS.getKey, yourDBMS.setKey, options, function (aFilter){
// your code here for storing elements to bloom filter
arrayOfStrangers.forEach( function(el){
aFilter.add(el.id);
});
//here we check if element is already in filter
bloom.test("12839e1280"); // returns true
bloom.test("QWEx39e180"); // returns false
// by this we save bloomfilter to database
aFilter.save();
});
1. Write tests
2. Use separate key to save\restore filter options
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More