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.
keyv-pouchdb
Advanced tools
Third party PouchDB storage adapter for Keyv.
Leveraging pouchdb-lru-cache as a keyv-storage-adapter that complies with the api specs.
$ npm install --save keyv-pouchdb
# Then add a pouchdb adapter
$ npm install pouchdb-adapter-memory --save
$ npm install pouchdb-adapter-http --save
$ npm install pouchdb-adapter-node-websql --save
const KeyvPouchDB = require("keyv-pouchdb");
const Keyv = require("keyv");
const store = new KeyvPouchDB({
// default options
maxCacheSize: 5000000, // maximum cache size in bytes. 0 for limitless [memory only]
overwriteExisting: false, // replace existing entries
pouchDB: {
// pouchDB configuration options
adapter: "memory", // pouchdb adapter
database: "keyv-pouchdb-cache", // database (string | uri)
remoteConfig: {} // configuration options for remote database
}
});
/*
* or connect to a remote instance
*
* npx pouchdb-server --port 3000 --in-memory
*
*/
new KeyvPouchDB("http://localhost:3000/keyv-pouchdb-cache"); // loads `pouchdb-adapter-http`
/*
*
* or maybe even sqlite3
*
*/
new KeyvPouchDB("database.db"); // loads `pouchdb-adapter-node-websql`
/****************************/
const keyv = new Keyv({ store });
MIT © wmik
FAQs
PouchDB storage adapter for Keyv
We found that keyv-pouchdb 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.