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.
then-couchdb
Advanced tools
then-couchdb is a promise-based CouchDB client for node.js. It supports all the features of CouchDB in a simple, user-friendly package.
Creating a client.
var couchdb = require('then-couchdb');
var db = couchdb.createClient('http://localhost:5984/my-database');
Save and fetch a single document.
db.save({ name: 'one' }).then(function (doc) {
assert(doc);
assert(doc._id);
assert(doc._rev);
db.get(doc._id).then(function (doc) {
assert(doc);
assert.equal(doc.name, 'one');
});
});
Save and fetch many documents in bulk.
db.saveAll([
{ name: 'one' },
{ name: 'two' },
{ name: 'three' }
]).then(function (docs) {
assert(Array.isArray(docs));
assert.equal(docs.length, 3);
var keys = docs.map(function (doc) {
return doc._id;
});
db.getAll(keys).then(function (docs) {
assert(Array.isArray(docs));
assert.equal(docs.length, 3);
});
});
FAQs
A promise-based CouchDB client
We found that then-couchdb 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
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.