1.1.1 • Published 9 years ago

pouchdb-require v1.1.1

Weekly downloads
4
License
BSD-2-Clause
Repository
github
Last release
9 years ago

PouchDB require() plugin

Usage

To use this plugin, include it after pouchdb.js in your HTML page:

<script src="pouchdb.js"></script>
<script src="pouchdb.require.js"></script>

This plugin is also available from Bower:

bower install pouchdb-require

Or to use it in Node.js, just npm install it:

npm install pouchdb-require

And then do this:

var PouchDB = require('pouchdb')
PouchDB.plugin(require('pouchdb-require'))

API

db.require('_design/api', 'lib/date')
.then(function (date) {
  return date.stringify(new Date)
}).catch(function (err) {
  // handle err
});
1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago