4.2.0 • Published 5 years ago

pouchdb-vhost v4.2.0

Weekly downloads
2,530
License
Apache-2.0
Repository
github
Last release
5 years ago

pouchdb-vhost

A PouchDB plug-in that allows you to re-use your CouchDB vhost config on the client side. A browser version is available.

API

NodeJS package name: pouchdb-vhost

Browser object name: window.VirtualeHost

This plug-in is a single function which requires a PouchDB object as its first argument. Following that, these extra methods become available.

PouchDB.virtualHost(req, vhosts[, options, callback])

PouchDB.resolveVirtualHost(req, vhosts)

Source

PouchDB Server and its sub-packages are distributed as a monorepo.

For a full list of packages, see the GitHub source.

License

The Apache 2 License. See the LICENSE file for more information.