http-pouchdb
Access remote CouchDB databases like you would access your local PouchDB
ones. Tested support for new PouchDB('name')
,
PouchDB.replicate('name', 'name')
, PouchDB.destroy('name')
and,
as a bonus, PouchDB.allDbs()
.
Example
npm install pouchdb http-pouchdb
var PouchDB = ;var HttpPouchDB = PouchDB 'http://localhost:5984'; var db = '_users';console //-> true// 'db' will be backed by http://localhost:5984/_users ; You can use it// like any PouchDB database.
API
NodeJS package name: http-pouchdb
Browser object name: window.buildHTTPPouchDB
Browser usage
API
module.exports = function (PouchDB, name, opts) -> PouchDB2
name
: The base url you want to use. Needs a trailing '/'.opts
:opts.headers
andopts.auth
.
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.