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.
couchdb_utilities
Advanced tools
var couchUtils = require('couchdb_utilities');
A simple program to obtain the size of all databases in a couchdb account will look like this
var couchUtils = require('couchdb_utilities');
var CouchURL = process.env.CouchURL;
var outputString = "";
var databases = couchUtils.listDatabases( CouchURL );
outputString = outputString + "DatabaseName" + "," + "DatabaseSize(Bytes)" + "\n";
for ( Counter = 0; Counter < databases.length; Counter++ ) {
outputString = outputString + databases[Counter] + "," + couchUtils.getDatabaseDetails( CouchURL, databases[Counter] ).disk_size + "\n";
}
console.log(outputString);
$ node getDatabaseSize.js
DatabaseName,DatabaseSize(Bytes)
development,1123012
preproduction,594596
production,594596
test,66352
test2,17032
test_backup,66352
$
var Boolean = couchUtils.validateConnection ( couchURL ) );
var String = couchUtils.getServerVersion ( couchURL ) );
var String = couchUtils.responseDuration ( couchURL ) );
var Array = couchUtils.listDatabases( couchURL ) );
var Boolean = couchUtils.databaseExists( couchURL, "test" ) );
var Boolean = couchUtils.createDatabase( couchURL, "test" ) );
var Boolean = couchUtils.deleteDatabase( couchURL, "test" ) );
var Object = couchUtils.getDatabaseDetails( couchURL, "test" ) );
var Array = couchUtils.getDesignDocuments ( couchURL, databaseName );
var Object = couchUtils.getDocumentbyID ( couchURL, databaseName, docID );
var Object = couchUtils.getDocumentsUsingQuery( couchURL, databaseName, queryString );
var Boolean = couchUtils.createDocument( couchURL, databaseName, jsonString );
var Boolean = couchUtils.deleteDocument( couchURL, databaseName, docID );
FAQs
This package contains utilties to use and support couchdb environments.
The npm package couchdb_utilities receives a total of 1 weekly downloads. As such, couchdb_utilities popularity was classified as not popular.
We found that couchdb_utilities 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.