objstorage

sessionStorage/localStorage API but backed by an object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
objstorage
1.0.04 years ago4 years agoMinified + gzip package size for objstorage in KB

Readme

objstorage
!Made by unshiftmade-by!Version npmversion!Build Statusbuild!Dependenciesdavid!Coverage Statuscover!IRC channelirc
A cross platform sessionStorage or localStorage for browsers and node backed by an plain object instead of browser API's.

Installation

This module is written for node and browserify and can be installed using npm:
npm install --save objstorage

Usage

This module exposes a node / module.exports interface.
var objStorage = require('objStorage')

The API is exactly the same as the DOM storage API so you can use the following methods:
  • getItem(key)
  • setItem(key, value)
  • removeItem(key)
  • clear()

License

MIT