idbi

0.0.9 • Public • Published

idbi - IndexedDB ideal

IndexedDB Promised

Installation

npm install idbi --save
// or
yarn add idbi

Open

let {Books, User} = idbi.open({
  name: 'muse',
  stores: {
    Books: {
      author: {},
      dataFactory: [
        { author: 1, title: 'First book' }
      ]
    },
    User: {
      email: {}
    }
  }
})
Books.add({ title: 'The second book' })
  .then(id => console.log(id))

Readme

Keywords

Package Sidebar

Install

npm i idbi

Weekly Downloads

1

Version

0.0.9

License

MIT

Last publish

Collaborators

  • yuradev