Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchdb_utilities

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb_utilities - npm Package Compare versions

Comparing version 1.0.10-prerelease to 1.0.11-prerelease

2

package.json
{
"name": "couchdb_utilities",
"version": "v1.0.10prerelease",
"version": "v1.0.11prerelease",
"description": "This package contains utilties to use and support couchdb environments.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ # Module under development.

Invocation of the module
### Invocation of the module
```

@@ -11,2 +11,28 @@ var couchUtils = require('couchdb_utilities');

### Simple program
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
$
```
### Server Utilities

@@ -66,10 +92,1 @@ #### Validate the input connection string

```
#### Check if the view exist
### Design Docs
#### Create view
#### Check Views in target
#### Delete design docs in target db
#### Create Design docs in target
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc