1.0.3 • Published 6 years ago

fortune-indexeddb-with-bundle v1.0.3

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

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.

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago