# pouchdb-vhost

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

Latest version **4.2.0** (published 2019-09-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install pouchdb-vhost
pnpm add pouchdb-vhost
yarn add pouchdb-vhost
bun add pouchdb-vhost
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.2.0 |
| Published | 2019-09-25 |
| First published | 2014-12-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 34.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 979 |
| Author | Marten de Vries |
| Maintainers | commandoline, daleharvey, garrensmith, nolanlawson |
| Keywords | pouch, pouchdb, couch, couchdb, vhost, design |

## Links

- npm: https://www.npmjs.com/package/pouchdb-vhost
- Repository: https://github.com/pouchdb/pouchdb-server
- Homepage: https://github.com/pouchdb/pouchdb-server#readme
- Issues: https://github.com/pouchdb/pouchdb-server/issues
- npm.io page: https://npm.io/package/pouchdb-vhost

## Dependencies (2)

- [pouchdb-route](https://npm.io/package/pouchdb-route.md) 4.2.0
- [promise-nodify](https://npm.io/package/promise-nodify.md) ^1.0.2

## Recent versions

- 4.2.0 (latest) — 2019-09-25
- 5.0.1-rc1.0 (beta) — 2025-08-27
- 4.1.0 — 2018-08-13
- 4.0.1 — 2018-06-05
- 4.0.0 — 2018-01-27
- 1.0.2 — 2016-02-05
- 1.0.1 — 2015-08-19
- 1.0.0 — 2014-12-04
- 0.1.0 — 2014-12-04

## 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](https://github.com/babel/babel/blob/master/doc/design/monorepo.md).

For a full list of packages, see [the GitHub source](https://github.com/pouchdb/pouchdb-server/tree/master/packages/node_modules).

License
-------

The Apache 2 License. See [the LICENSE file](https://github.com/pouchdb/pouchdb-server/blob/master/LICENSE) for more information.

---
_Source: https://npm.io/package/pouchdb-vhost · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
