0.0.3 • Published 3 years ago

runsv-couchdb v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

pipeline status coverage report

runsv CouchDB (apache-nano client) service

This is a service wrapper around the excellent nano for runsv.

Install

If you have already installed nano

$ npm install runsv-couchdb

Otherwise

$ npm install nano runsv-couchdb

nano is a peer dependency

Usage

const runsv = require('runsv')();
const couchdb = require('runsv-couchdb')(/* nano config here*/);

runsv.addService(couchdb);
runsv.start(function(err, clients){
	const {couchdb} = clients;
	//your program goes here
});

Configure nano

You can configure your connection to couchdb the same way you you do it with nano.

// --- Configuration example comparison ---
//  Create client with nano
const nano = require('nano')('http://localhost:5984/my-db');
//  Create a service wrapper with runsv-couchdb
const runsvCouchdb = require('runsv-couchdb')('http://localhost:5984/my-db');
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago