couchdb-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "couchdb-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple couchdb client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,14 @@ # CouchDBClient | ||
```js | ||
var client = require('couchdb-client'); | ||
var CouchDBClient = require('couchdb-client'); | ||
var client = CouchDBClient({ | ||
host: '127.0.0.1', | ||
port: '5984' | ||
}); | ||
client.welcome(function (err, data) { | ||
console.log(err || data); | ||
}); | ||
client.createDB('test', function (err, data) { | ||
console.log(err || data); | ||
}); | ||
``` | ||
Now we have created a database in our couchdb instance. If all goes to plan we have a welcome message and a {"ok":true}. We also have a database at http://127.0.0.1:5984/test. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11029
19