Fortune IndexedDB
![License](https://img.shields.io/npm/l/fortune-localforage.svg?style=flat-square)
This is an adapter for Fortune.js that uses localForage, so it wraps IndexedDB, WebSQL, or localStorage. There is also a localForage-cordovaSQLiteDriver.
$ npm install localforage fortune-localforage
Usage
This module works in web browsers only
const fortune = require('fortune')
const localForageAdapter = require('fortune-localforage')
const store = fortune(recordTypes, {
adapter: [localForageAdapter, {
name: 'fortune',
config: {
driver: [localforage.INDEXEDDB, localforage.WEBSQL, localforage.LOCALSTORAGE],
version : 1.0,
size : 4980736,
storeName : 'keyvaluepairs',
description : 'some description'
}
driver: [localforage.INDEXEDDB, localforage.WEBSQL, localforage.LOCALSTORAGE],
}]
})
License
This software is licensed under the MIT license.