New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.5 to 1.0.6

20

index.js

@@ -1,12 +0,20 @@

exports.printMsg = function() {
console.log("This is a message from the demo package");
console.log("This is a message from the demo package");
};
exports.checkDB = function ( couchURL, databaseName ) {
var couchDBURL = couchURL + "/" + databaseName;
return this.returnObjfromURL(couchDBURL);
var couchDBURL = couchURL + "/" + databaseName;
Obj = this.returnObjfromURL(couchDBURL);
return JSON.parse ( Obj.responseString);
};
exports.listDatabases = function ( couchURL ) {
var couchDBURL = couchURL + "/" + "_all_dbs";
Obj = this.returnObjfromURL(couchDBURL);
return JSON.parse ( Obj.responseString);
};
exports.returnObjfromURL = function ( URL ) {

@@ -26,5 +34,7 @@

returnObj.responseCode = statusCode;
returnObj.responseCode = response.getBody('utf8');
returnObj.responseString = responseString;
return returnObj;
};
{
"name": "couchdb_utilities",
"version": "v1.0.5",
"version": "v1.0.6",
"description": "This package will help you sync the design documents from one couchdb to another",

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

@@ -1,3 +0,10 @@

# couchdb_utils
# Module under development.
# couchdb_utilities
Invocation of the module
```
var couchUtils = require('couchdb_utilities');
```
### Core

@@ -8,2 +15,12 @@ #### Verify Inputs

#### Get list of Dbs in the Source
```
console.log( couchUtils.listDatabases( "http://0.0.0.0:5984" ) );
[
"_replicator",
"_users",
"test2"
]
```
#### Check if the view exist

@@ -10,0 +27,0 @@ #### Check db in the 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