Socket
Socket
Sign inDemoInstall

zapier-async-storage

Package Overview
Dependencies
0
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zapier-async-storage

Minimalist wrapper for IndexedDB


Version published
Weekly downloads
31
increased by34.78%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 02 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc