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

    Install

    npm i couchdb-ensure

    DownloadsWeekly Downloads

    1,086

    Version

    2.1.0

    License

    Apache-2.0

    Unpacked Size

    5.71 kB

    Total Files

    8

    Last publish

    Collaborators

    • jo