Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
cluster-memdb
Advanced tools
key-value memory database for single process application and cluster application
A key-value memory database for single process application and cluster application.
Using this util, you can share datas in every processes of cluster.
npm install cluster-memdb
this example show you how to use it, you can read .d.ts
for more information
import {memdb, dbs} from 'cluster-memdb'
// declare database (won't create any keys)
const userdb = memdb('user', 'id')
const lovedb = memdb('love', 'key')
// create "user" key and write those 2 users to "user"
await userdb.save([
{id:1, name:'Mike', gender:'male', love:['bread']},
{id:2, name:'Louis', gender:'female', love:['beef', 'bread']},
])
// clean "love" key and write new datas
await lovedb.replace([
{key:'bread', price:'3.00'},
{key:'beef', price:'10.00'}
])
await dbs() // ["user", "love"]
await userdb.getAll() // [{id:1, ...}, {id:2, ...}]
await lovedb.getByKeys(['bread']) // [{key:'bread', price:'3.00'}]
await userdb.find({name:'Mike'}) // [{id:1, ...}]
// "Mike" and "Louis" both deleted
await userdb.delete([1, 2])
// "bread" and "beef" both deleted
await love.clean()
FAQs
key-value memory database for single process application and cluster application
We found that cluster-memdb 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.