npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

couchdb-ensure

1.4.0 • Public • Published

CouchDB Ensure

Create database unless it exists.

BuildStatus

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

install

npm i couchdb-ensure

Downloadsweekly downloads

1,441

version

1.4.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability