couchdb-ensure

Create database unless it exists.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
couchdb-ensure
2.1.010 months ago7 years agoMinified + gzip package size for couchdb-ensure in KB

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