npm.io
1.0.1 • Published 11 years ago

@blinkmobile/is-indexeddb-reliable

Licence
BSD-3-Clause
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

@blinkmobile/is-indexeddb-reliable

npm module

does this browser provide a good IndexedDB implementation?

API

sync()

  • @returns {Boolean}

Perform basic feature-detection and return a synchronous result

Avoids time-consuming or resource-intensive approaches

quick(callback)
  • @param {resultCallback} callback

Exercise (asynchronous) storage API enough to establish confidence that it works

Avoids time-consuming or resource-intensive approaches

thorough(callback) (NOT IMPLEMENTED)
  • @param {resultCallback} callback

Exercise (asynchronous) storage API without care for time taken, etc

Callback: resultCallback
  • @param {Boolean} result of the feature-detect

Example

isIndexedDBReliable.sync(); // true|false

isIndexedDBReliable.quick(function (result) {
  // result = true|false
});