1.0.5 • Published 6 years ago

simple-indexeddb v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

simple-indexedDB

Api for doing simple and intuitive operations towards indexedDB.

Installation

yarn add simple-indexeddb

npm install simple-indexeddb

import {createStore, put, remove} from 'simple-indexeddb'; 

Creating the database

    createStore("myDatabase", "myStore");

Adding/Replacing items

    // adding (specifying path to key, 'id')
    put("myDatabase", "myStore", {id : 1, text : "buy milk", done : false}, "id");  

    // replacing (same key!)
    put("myDatabase", "myStore", {id : 1, text : "walk the dog", done : false}, "id"); 

Removing items

        // same key as earlier 
    remove(1, "myStore", "myDatabase"); 
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago