1.0.3 • Published 3 years ago

pouchdb-adapter-hyperbee v1.0.3

Weekly downloads
59
License
AGPL-3.0
Repository
github
Last release
3 years ago

pouchdb-adapter-hyperbee

Adapter for PouchDB to load p2p data from Hyperbee

Example

PouchDB.plugin(require('poouchdb-adapter-hyperbee')())

// You can pass any valid `hyper://` URL
// URLs with a `name` in them will generate a local hyperbee
// You can sparsely load remote DBs with a full `hyper://` URL
const pouch = new PouchDB('hyper://example', {
  adapter: 'hyperbee'
})

// Wait for the DB to open if you want to access the bee directly
pouch.once('open', () => {
  const url = await pouch.getURL()

  // In case you want to access the hyperbee instance directly
  const bee = pouch.bee
})
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago