runsv-couchdb

0.0.3 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i runsv-couchdb

Weekly Downloads

54

Version

0.0.3

License

MIT

Unpacked Size

4.75 kB

Total Files

5

Last publish

Collaborators

  • p.revington