npm

Need private packages and team management tools?Check out npm Orgs. »

node-couch-view-indexer

1.0.1 • Public • Published

node-couch-view-indexer

CouchDb view indexer for Node.Js using node-couch

Installation

npm install node-couch-view-indexer --save

NPM package

Usage

var indexer = require('node-couch-view-indexer'),
        options = {
            logExceptions: false,
            nodeCouch: { // node-couch options
               credentials: {
                   userName: 'user',
                   password: 'pass'
               },
               database: 'database',
               url: {
                   hostName: 'localhost',
                   port: 5984
               }
           }
        };
 
indexer.index(options);

Api

Methods

.index(options)

Indexes CouchDb database views.

Options

.logExceptions

Boolean. Optional. Whether or not to log exception data. Defaults to false.

.nodeCouch

Object. Required. See node-couch initialization data.

.nodeCouch.database

String. Optional. If specified, only views of this database will be indexed. Otherwise all views of all databases will be indexed.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Release History

  • 2017-10-12 v1.0.1 Disabled exception logging by default.
  • 2017-10-12 v1.0.0 Initial version.

install

npm i node-couch-view-indexer

Downloadsweekly downloads

2

version

1.0.1

license

WTFPL-2.0

last publish

collaborators

  • avatar
Report a vulnerability