JSPM

objstorage

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1899
  • Score
    100M100P100Q115219F
  • License MIT

sessionStorage/localStorage API but backed by an object

Package Exports

  • objstorage

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (objstorage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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