soft-indexeddb

1.0.2 • Public • Published

soft-indexeddb

Minimalist indexeddb abstraction 💾

NPM version

Npm Downloads

Installation

npm install --save soft-indexeddb

Usage

const idb = new IDB({
  name: 'db',
  version: 5,
  stores: [
    {
      name: 'store1',
      autoIncrement: true
    },
    {
      name: 'store2',
      autoIncrement: true
    }
  ]
});

idb.store('store1').find()
  .then(res => {
    // ...
  })
  .catch(err => {
    // ...
  })

Package Sidebar

Install

npm i soft-indexeddb

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • roganmelo