0.1.11 • Published 2 years ago

web-local-storage v0.1.11

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

web-local-storage

web-local-storage implements a convenience interface to access localStorage.

Installation

NPM

  $ npm install web-local-storage --save

Yarn

  $ yarn add web-local-storage

Basic Usage

On the client

It implements the same interface as js-cookie for interoperability.

import WebLocalStorage from "web-local-storage";
const els = new WebLocalStorage();

// Set local storage
els.set("user", {userName: "test", token: "some token here"}, { expires: 30 });

// Retrieve
const user = els.get("user");

// Clear
els.remove("user");

Authors

0.1.11

2 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

4 years ago

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago