
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
cacheswitcher
Advanced tools
This library is a wrapper around https://github.com/groupon/node-cached and https://github.com/cayasso/cacheman-redis, it makes easy to switch from one to the other with configuration. It also make all APIs the same, same methods, same parameters. Not all APIs are wrapped but the common ones. It also add the Promise style on all the method
npm install supercache
Simple memory cache
var superCache = require(cacheswitcher)('memory');
superCache.set('mykey',12345).then(function(){
superCache.get('mykey').then(function(data){
console.log(data);
superCache.unset('mykey').then(function(){
console.log('Clean');
});
})
})
Redis cache
var superCache = require(cacheswitcher)('redis',{server:'127.0.0.1',port:6379});
superCache.set('mykey',12345).then(function(){
superCache.get('mykey').then(function(data){
console.log(data);
superCache.unset('mykey').then(function(){
console.log('Clean');
});
})
})
Redis cache with ttl
var superCache = require(cacheswitcher)('redis',{server:'127.0.0.1',port:6379});
superCache.set('mykey',12345,'3d').then(function(){
//3 days later
superCache.get('mykey').then(function(data){
console.log(data); // -> undefined
superCache.unset('mykey').then(function(){
console.log('Clean');
});
})
})
FAQs
cacheswitcher ==========
The npm package cacheswitcher receives a total of 1 weekly downloads. As such, cacheswitcher popularity was classified as not popular.
We found that cacheswitcher 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.