1.0.0 • Published 7 years ago

zapier-async-storage v1.0.0

Weekly downloads
4,941
License
UNLICENSED
Repository
github
Last release
7 years ago

zapier-async-storage

Minimalist wrapper for IndexedDB

Usage

npm install zapier-async-storage
import { createInstance } from 'zapier-async-storage';

const db = createInstance({
  storeName: 'my-store',
  dbName: 'AsyncStorage',
  version: 1,
});

db.setItem('hello', 'world')
  .then(db.getItem('hello'))
  .then((result) => {
    console.log(result); // 'world'
  });

Configuration

WIP.

Development

npm run start
open http://localhost:8001/__tests__/

Navigate to http://localhost:8001/__tests__ to view the Mocha test suite.

Browser Compatibilty

This library uses modern JS features like Object.assign and Promise, so for compatibilty with older browsers (i.e., IE), you'll need an appropriate polyfill.

1.0.0

7 years ago

0.3.7

7 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago