How to use pouchdb-adapter-localstorage - 1 common examples

To help you get started, we’ve selected a few pouchdb-adapter-localstorage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pouchdb / pouchdb / packages / pouchdb / src / extras / localstorage.js View on Github external
/* global PouchDB */

import LocalStoragePouchPlugin from 'pouchdb-adapter-localstorage';
import { guardedConsole } from 'pouchdb-utils';

var PDB = (typeof PouchDB !== 'undefined') ? PouchDB : require('pouchdb');
if (!PDB) {
  guardedConsole('error', 'localstorage adapter plugin error: ' +
    'Cannot find global "PouchDB" object! ' +
    'Did you remember to include pouchdb.js?');
} else {
  LocalStoragePouchPlugin(PDB);
}

pouchdb-adapter-localstorage

PouchDB adapter using LocalStorage as its data store.

Apache-2.0
Latest version published 5 months ago

Package Health Score

83 / 100
Full package analysis

Popular pouchdb-adapter-localstorage functions

Similar packages