Module: js-data-localstorage

Registered as js-data-localstorage in NPM and Bower.

Details
Source
src/index.js, line 632

Examples

Script tag

var LocalStorageAdapter = window.JSDataLocalStorage.LocalStorageAdapter
var adapter = new LocalStorageAdapter()

CommonJS

var LocalStorageAdapter = require('js-data-localstorage').LocalStorageAdapter
var adapter = new LocalStorageAdapter()

ES2015 Modules

import {LocalStorageAdapter} from 'js-data-localstorage'
const adapter = new LocalStorageAdapter()

AMD

define('myApp', ['js-data-localstorage'], function (JSDataLocalStorage) {
  var LocalStorageAdapter = JSDataLocalStorage.LocalStorageAdapter
  var adapter = new LocalStorageAdapter()

  // ...
})

Members


<static> default

LocalStorageAdapter class. ES2015 default import.


<static> LocalStorageAdapter


<static> version

Details of the current version of the js-data-localstorage module.

Details
Type Source
Object src/index.js, line 616
Properties:
Name Type Description
version.full String

The full semver value.

version.major Number

The major version number.

version.minor Number

The minor version number.

version.patch Number

The patch version number.

version.alpha String | Boolean

The alpha version value, otherwise false if the current version is not alpha.

version.beta String | Boolean

The beta version value, otherwise false if the current version is not beta.