jack-db-couchdb

1.0.1 • Public • Published

jack-db-couchdb

NPM version Downloads

This Jack-Stack Plugin is used to add create jack.db.couchdb.

jack.plugins.add(require('jack-db-couchdb'));

Configuration

You can either pass in your configuration:

var jack = require('jack-stack');
var couch = require('jack-db-couchdb');
 
jack.plugins.add(couch.configure({
  url: '1.1.1.1', // Some IP
  port: '1234' // Some PORT
}));

Or you can use node-config and set the config variables in your config/ files:

module.exports = {
  db: {
    couch: {
      url: '1.1.1.1', // Some IP
      port: '1234' // Some PORT
    },
  }
};

Options

You can either set the host parameter:

couch({
  host: 'https://full:path@to.domain:port'
});

or you can use the url and port options:

couch({
  url: '1.1.1.1', // Some IP
  port: '1234' // Some PORT
});

This uses the format: host = http://{config.url}:{config.port}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    2

Package Sidebar

Install

npm i jack-db-couchdb

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dncrews