pouchdb-http
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/pouchdb-http package

6.0.2 • Public • Published

pouchdb-http

PouchDB as an HTTP-only package.

The pouchdb-http preset only contains the HTTP adapter, i.e. the adapter that allows PouchDB to talk to CouchDB using the format new PouchDB('http://127.0.0.1:5984/mydb').

Use this preset if you only want to use PouchDB as an interface to CouchDB (or a Couch-compatible server).

Usage

npm install pouchdb-http
var PouchDB = require('pouchdb-http');
var db = new PouchDB('http://127.0.0.1:5984/mydb');

Note that this preset doesn't come with map/reduce (i.e. the query() API). If you want that, then you should do:

var PouchDB = require('pouchdb-http')
  .plugin(require('pouchdb-mapreduce'));

For full API documentation and guides on PouchDB, see PouchDB.com. For details on PouchDB sub-packages, see the Custom Builds documentation.

/pouchdb-http/

    Package Sidebar

    Install

    npm i pouchdb-http

    Weekly Downloads

    172

    Version

    6.0.2

    License

    Apache-2.0

    Last publish

    Collaborators

    • daleharvey
    • nickcolley
    • nolanlawson