Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
iomem
WARNING! THIS SOFTWARE IS A WORK IN PROGRESS! DO NOT USE IT!
Memcached client implementing binary protocol with native multiple keys support.
yarn add iomem
or
npm install iomem
const Memcached = require('iomem')
const iomem = new Memcached()
await iomem.set('test:key', 'hello')
console.log(await iomem.get('test:key'))
const Memcached = require('iomem')
const iomem = new Memcached()
await iomem.set(['test:key1', 'test:key2'], ['hello', 'world'])
console.log(await iomem.get(['test:key1', 'test:key2']))
await iomem.del(['test:key1', 'test:key2'])
const Memcached = require('iomem')
const iomem = new Memcached(['127.0.0.1:11211', '127.0.0.2:11211'])
...
Address formats:
// host:port
or
// username:password@host:port
or
// /path/to/memcached.sock
const Memcached = require('iomem')
const iomem = new Memcached(['127.0.0.1:11211'], { stream: true })
const { pipeline, Writable } = require('node:stream')
class Echo extends Writable {
_write (data, _, cb) {
console.log(data)
cb()
}
}
pipeline(iomem.get('btylink::test:a'), new Echo({ objectMode: true }), err => {
if (err) {
console.log(err)
}
})
{
stream: false, // set true to use streams instead of promises
expiry: 60 * 60 * 24 * 1, // 1 day, time interval in seconds
maxConnection: 10, // max connections per server
connectionTimeout: 1000, // connection timeout
timeout: 500, // request timeout
retries: 2 // request retries
}
FAQs
Memcached client implementing binary protocol with native multiple keys support
The npm package iomem receives a total of 855 weekly downloads. As such, iomem popularity was classified as not popular.
We found that iomem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.