Skip to content

pb-yuri-zaporozhets/idbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

About

IndexedDB Promised

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published