fortune-indexeddb-with-bundle

1.0.3 • Public • Published

Fortune IndexedDB

Build Status npm Version License

This is an IndexedDB adapter for Fortune.js. Various performance and compatibility optimizations are included:

$ npm install fortune-indexeddb --save

Usage

This module works in web browsers only, and falls back to memory if IndexedDB is not available:

const fortune = require('fortune')
const indexedDBAdapter = require('fortune-indexeddb')
 
const store = fortune(recordTypes, {
  adapter: [ indexedDBAdapter, {
    // Name of the IndexedDB database to use. Defaults to `fortune`.
    name: 'fortune'
  } ]
})

License

This software is licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i fortune-indexeddb-with-bundle

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

160 kB

Total Files

9

Last publish

Collaborators

  • acoreyj