How to use the pouchdb.utils function in pouchdb

To help you get started, we’ve selected a few pouchdb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cdaringe / pouchy / src / bluebirdify-pouchdb.js View on Github external
'use strict'

var bb = require('bluebird')
var __Promise = global.Promise
global.Promise = bb
var PouchDB = require('pouchdb')
bb.config({ warnings: false })
PouchDB.utils.Promise = bb
global.Promise = __Promise
PouchDB.plugin(require('pouchdb-find'))
module.exports = PouchDB