🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

runsv-couchdb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runsv-couchdb

runsv couchdb service wrapper

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 15 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts