couchdb_utilities
Advanced tools
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 |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2093
27
35