
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Redis analytics for node.js.
Note: not ready for production use.
Hashes and maps input values to an internal linear identifier via redis-identity. You can then ask the bitmap various questions ranging some simple membership to more complex bitwise operations.
Inspired by: fast-easy-realtime-metrics-using-redis-bitmaps
Basic logic
var bitcrunch = require('bitcrunch');
var won = bitcrunch('won');
var lost = bitcrunch('lost');
// winners
won
.add('a+foobar@email.com')
.add('b+foobar@email.com')
.add('c+foobar@email.com');
// losers
lost
.add('c+foobar@email.com')
.add('d+foobar@email.com');
// won AND lost
won
.and(lost)
.count(function(err, total){
console.log('%s won and lost', total);
});
// won OR lost
won
.or(lost)
.count(function(err, total){
console.log('%s won or lost', total);
});
Membership
var bitcrunch = require('bitcrunch');
var likes = bitcrunch('likes')
.add('js')
.add('lua')
.add('redis');
likes.includes('js', function(err, result){
console.log('result = %s', result);
});
MIT
FAQs
redis backed analytics for node
The npm package bitcrunch receives a total of 0 weekly downloads. As such, bitcrunch popularity was classified as not popular.
We found that bitcrunch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.