pouchdb-vhost

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

Usage no npm install needed!

<script type="module">
  import pouchdbVhost from 'https://cdn.skypack.dev/pouchdb-vhost';
</script>

README

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.