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.
pouchdb-size
Advanced tools
Adds disk_size to info()'s output for your leveldown backed PouchDB's.
Adds disk_size to info()'s output for your *down backed PouchDB's.
Tested with leveldown, sqldown, jsondown, locket and medeadown. When it
can't determine the database size, it falls back to the default
info()
output.
//index.js
var PouchDB = require('pouchdb');
PouchDB.plugin(require('pouchdb-size'));
var db = new PouchDB('test');
db.installSizeWrapper();
db.info().then(function (resp) {
//resp will contain disk_size
})
wraps db.info()
in such a way that it will include a disk_size
property in its output for supported database backends.
like PouchDB, this method both returns a Promise and accepts a callback. Either returns an error or the disk size of the current db.
PouchDB Server and its sub-packages are distributed as a monorepo.
For a full list of packages, see the GitHub source.
The Apache 2 License. See the LICENSE file for more information.
FAQs
Adds disk_size to info()'s output for your leveldown backed PouchDB's.
The npm package pouchdb-size receives a total of 745 weekly downloads. As such, pouchdb-size popularity was classified as not popular.
We found that pouchdb-size demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.