@fanny-pack/browser-extension
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.2 • Public • Published

Fanny Pack Browser

Fanny Pack running in a browser extension on top of the storage API.

Installation

npm install --save @fanny-pack/browser-extension

Usage

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

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

You can now use fp as any other Fanny Pack.

API

new FannyPack(storageArea: string, databaseName: string)

Create or open an existing database with the provided name, in the given storage area.

Valid storage areas:

  • local - Items in local storage are local to the machine the extension was installed on.
  • sync - Items in sync storage are synced by the browser, and are available across all instances of that browser that the user is logged into, across different devices.

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

Readme

Keywords

none

Package Sidebar

Install

npm i @fanny-pack/browser-extension

Weekly Downloads

0

Version

1.0.0-beta.2

License

MIT

Unpacked Size

7.21 kB

Total Files

4

Last publish

Collaborators

  • albinekb
  • linusu