IndexedDB adapter for Fortune.js.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download

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


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 `db`.
    name: 'db'
  } ]


This software is licensed under the MIT license.