@docomodigital/js-storage
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

js-storage

npm version

Storage is the library to save and get data in different ways.

Usage

import Storage from '@docomodigital/js-storage';

// Set an item in the storage
Storage.set('locale', 'en');

// Get a previously setted item from the storage
Storage.get('locale'); // 'en'

// Delete an item from the storage if present
Storage.delete('locale');

// Switch to another Storage (window.localStorage), default is cookie
Storage.setStorage('localstorage');

Installation

NPM

npm install --save @docomodigital/js-storage

Documentation

To read documentation, go to:

http://docomodigital.github.io/js-utils/js-storage/latest

Readme

Keywords

none

Package Sidebar

Install

npm i @docomodigital/js-storage

Weekly Downloads

22

Version

3.0.3

License

MIT

Unpacked Size

76.3 kB

Total Files

33

Last publish

Collaborators

  • everdrone
  • blame_etc