Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.
/ pouchdb-vhost Public archive

See pouchdb-server for the new home of pouchdb-vhost

Notifications You must be signed in to change notification settings

pouchdb/pouchdb-vhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pouchdb-vhost

Build Status Dependency Status devDependency Status

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

#TODO: update, expand, rst -> md.

.. _pouchdb-vhost-plug-in:

PouchDB VirtualHost plug-in
===========================
+----------------------+------------------------+
| NodeJS package name: | `pouchdb-vhost`_       |
+----------------------+------------------------+
| Browser object name: | ``window.VirtualHost`` |
+----------------------+------------------------+

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

.. _pouchdb-vhost: https://www.npmjs.org/package/pouchdb-vhost

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

.. js:function:: PouchDB.resolveVirtualHost(req, vhosts)

About

See pouchdb-server for the new home of pouchdb-vhost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published