1.0.0-beta.1 • Published 6 years ago

@fanny-pack/browser v1.0.0-beta.1

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

Fanny Pack Browser

Fanny Pack running in the browser on top of IndexedDB.

Installation

npm install --save @fanny-pack/browser

Usage

const FannyPack = require('@fanny-pack/browser')

const fp = new FannyPack('important-data')

You can now use fp as any other Fanny Pack.

API

new FannyPack(databaseName: string)

Create or open an existing database with the provided name. The data will be stored inside IndexedDB.

The rest of the API follows the shared Fanny Pack API.