Skip to content

KCCloudTech/fortune-indexeddb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

License

This software is licensed under the MIT license.

About

IndexedDB adapter for Fortune.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.4%
  • HTML 0.6%