Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jo/couchdb-ensure
- Owner: jo
- License: other
- Created: 2015-06-08T15:43:48.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T11:48:35.000Z (almost 2 years ago)
- Last Synced: 2024-09-23T13:06:27.485Z (3 months ago)
- Language: JavaScript
- Size: 4.08 MB
- Stars: 4
- Watchers: 43
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - jo/couchdb-ensure - Create database unless it exists. (others)
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
```