Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Probabilistic counters for node.js, backed by redis.
Note: not ready for production use.
Currently the only structure implemented is a linear counter. It hashes and maps input values to an internal linear identifier via redis-identity
.
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
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.