
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
http-pouchdb
Advanced tools
Access remote CouchDB databases like you would access your local PouchDB ones.
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()
.
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.
NodeJS package name: http-pouchdb
Browser object name: window.buildHTTPPouchDB
<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>
module.exports = function (PouchDB, name, opts) -> PouchDB2
name
: The base url you want to use. Needs a trailing '/'.opts
: opts.headers
and opts.auth
.PouchDB Server and its sub-packages are distributed as a monorepo.
For a full list of packages, see the GitHub source.
The Apache 2 License. See the LICENSE file for more information.
FAQs
Access remote CouchDB databases like you would access your local PouchDB ones.
The npm package http-pouchdb receives a total of 277 weekly downloads. As such, http-pouchdb popularity was classified as not popular.
We found that http-pouchdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.