treojs / idb-polyfill

The ultimate IndexedDB polyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idb-polyfill

The ultimate IndexedDB polyfill

Usage

import idbPolyfill from 'idb-polyfill'

// try to rewrite native and set p* namespace
idbPolyfill.polyfill()

// or use native implementation for some browsers
idbPolyfill.polyfillExcept(['Chrome', 'Opera'])

const indexedDB = global.pIndexedDB || global.indexedDB
const IDBKeyRange = global.pIDBKeyRange || global.IDBKeyRange

// or use polyfill explicitly and set your own globals
import { indexedDB, IDBKeyRange } from 'idb-polyfill'

License

Apache 2.0

About

The ultimate IndexedDB polyfill


Languages

Language:JavaScript 100.0%