Socket
Socket
Sign inDemoInstall

couch-daemon-bridge

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    couch-daemon-bridge

Use CouchDBs os_daemons with node.


Version published
Weekly downloads
3
decreased by-70%
Maintainers
1
Install size
650 kB
Created
Weekly downloads
 

Readme

Source

couch-daemon-bridge

Build Status

Ease the use of CouchDBs os_daemons with node.

Usage

var daemon = require('couch-daemon-bridge')();

// Log a message
daemon.info('My daemon is starting.');
daemon.debug('I have so much wow...');
daemon.error('An error occured!');

// Request configuration
daemon.get('httpd', function(err, data) {
  // data is now an object holding the whole httpd section
});
daemon.get('httpd.bind_address', function(err, data) {
  // data is now a string holding the value
});

Environment Variables

Every configuration can be overridden via environment variable:

export HTTPD_BIND_ADDRESS="93.184.216.119"
var daemon = require('couch-daemon-bridge')();

// Request configuration
daemon.get('httpd.bind_address', function(err, data) {
  // data is now a string holding the value of HTTPD_BIND_ADDRESS if present
});

Configuration

couch-daemon-bridge takes an object as an optional argument:

  • stdin: input stream. Default is process.stdin.
  • stdout: output stream. Default is process.stdout.
  • exit: function which is called when stdin closes. Default is to call process.exit(0).

Contributing

  1. Write tests with tap
  2. Lint your code with npm run jshint
  3. Run the tests with npm test

License

Copyright (c) 2014 Johannes J. Schmidt
Licensed under the MIT license.

Keywords

FAQs

Last updated on 20 May 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc