Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

objstorage

bigpipe8.6kMIT1.0.0

sessionStorage/localStorage API but backed by an object

object, obj, storage, objstorage, localstorage, sessionstorage

readme

objstorage

Made by unshiftVersion npmBuild StatusDependenciesCoverage StatusIRC channel

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