
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
couchdb_utilities
Advanced tools
This package contains utilties to use and support couchdb environments.
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.updateDocument( 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 0 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.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.