Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pb-yuri-zaporozhets/idbi

IndexedDB Promised
https://github.com/pb-yuri-zaporozhets/idbi

Last synced: 7 days ago
JSON representation

IndexedDB Promised

Awesome Lists containing this project

README

        

# idbi - IndexedDB ideal
> IndexedDB Promised

## Installation

```bash
npm install idbi --save
// or
yarn add idbi
```
## Open
```js
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))
```