couchdb-ensure

2.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i couchdb-ensure

Weekly Downloads

574

Version

2.1.0

License

Apache-2.0

Unpacked Size

5.71 kB

Total Files

8

Last publish

Collaborators

  • jo