3.0.3 • Published 4 years ago

@docomodigital/js-storage v3.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago