couchdb-ensure
v2.1.0
Published
Create database unless it exists.
Downloads
1,872
Readme
CouchDB Ensure
Create database unless it exists.
API
ensure(url[, options], callback)
Example
var ensure = require('couchdb-ensure')
ensure('http://localhost:5984/mydb', function(error, response) {
// here we go, mydb exists
})
CLI
couchdb-ensure URL
Example
couchdb-ensure http://localhost:5984/mydb
Tests
npm test