# pouchdb-quorum

> PouchDB Quorum Plugin

Latest version **0.0.1** (published 2015-04-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-04-11 |
| First published | 2015-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Robert Keizer |
| Maintainers | robertkeizer |
| Keywords | pouch, pouchdb, plugin, quorum, couch, couchdb, replication, ha, high-availability |

## Links

- npm: https://www.npmjs.com/package/pouchdb-quorum
- Repository: https://github.com/robertkeizer/pouchdb-quorum
- Issues: https://github.com/robertkeizer/pouchdb-quorum/issues
- npm.io page: https://npm.io/package/pouchdb-quorum

## Dependencies (4)

- [lie](https://npm.io/package/lie.md) ^2.6.0
- [es3ify](https://npm.io/package/es3ify.md) ^0.1.3
- [inherits](https://npm.io/package/inherits.md) ~2.0.1
- [argsarray](https://npm.io/package/argsarray.md) 0.0.1

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2015-04-11

## README

PouchDB Plugin Seed
=====

[![Build Status](https://travis-ci.org/robertkeizer/pouchdb-quorum.svg)](https://travis-ci.org/robertkeizer/pouchdb-quorum)

Usage
--------

This plugin is <strong>not</strong> ready for use!

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

```html
<script src="pouchdb.js"></script>
<script src="pouchdb.quorum.js"></script>
```

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

```
npm install pouchdb-quorum
```

And then attach it to the `PouchDB` object:

```js
var PouchDB = require('pouchdb');
PouchDB.plugin(require('pouchdb-quorum'));
```

Getting Started
-------

Working on it.


Building
----
    npm install
    npm run build

Your plugin is now located at `dist/pouchdb.mypluginname.js` and `dist/pouchdb.mypluginname.min.js` and is ready for distribution.

Testing
----

### In Node

This will run the tests in Node using LevelDB:

    npm test
    
You can also check for 100% code coverage using:

    npm run coverage

If you don't like the coverage results, change the values from 100 to something else in `package.json`, or add `/*istanbul ignore */` comments.


If you have mocha installed globally you can run single test with:
```
TEST_DB=local mocha --reporter spec --grep search_phrase
```

The `TEST_DB` environment variable specifies the database that PouchDB should use (see `package.json`).

### In the browser

Run `npm run dev` and then point your favorite browser to [http://127.0.0.1:8001/test/index.html](http://127.0.0.1:8001/test/index.html).

The query param `?grep=mysearch` will search for tests matching `mysearch`.

### Automated browser tests

You can run e.g.

    CLIENT=selenium:firefox npm test
    CLIENT=selenium:phantomjs npm test

This will run the tests automatically and the process will exit with a 0 or a 1 when it's done. Firefox uses IndexedDB, and PhantomJS uses WebSQL.

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