Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-pouchdb

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-pouchdb

Access remote CouchDB databases like you would access your local PouchDB ones.

  • 4.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by14.27%
Maintainers
5
Weekly downloads
 
Created
Source

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 = require('pouchdb');
var HttpPouchDB = require('http-pouchdb')(PouchDB, 'http://localhost:5984');

var db = new HttpPouchdb('_users');
console.log(HttpPouchDB.isHTTPPouchDB) //-> 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

<script src='somewhere/pouchdb.min.js'></script>
<script src='dist/http-pouchdb.min.js'></script>
<script>
  var HttpPouchDB = buildHTTPPouchDB(PouchDB, 'http://localhost:5984/test');
  // use HttpPouchdb as above.
</script>

API

  • module.exports = function (PouchDB, name, opts) -> PouchDB2
  • name: The base url you want to use. Needs a trailing '/'.
  • opts: opts.headers and opts.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.

Keywords

FAQs

Package last updated on 25 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc