Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jo/couchdb-ensure

Create database unless it exists.
https://github.com/jo/couchdb-ensure

Last synced: about 2 months ago
JSON representation

Create database unless it exists.

Awesome Lists containing this project

README

        

# CouchDB Ensure
Create database unless it exists.

## API

```js
ensure(url[, options], callback)
```

### Example

```js
var ensure = require('couchdb-ensure')
ensure('http://localhost:5984/mydb', function(error, response) {
// here we go, mydb exists
})
```

## CLI

```sh
couchdb-ensure URL
```

### Example

```sh
couchdb-ensure http://localhost:5984/mydb
```

## Tests
```sh
npm test
```