0.1.11 • Published 1 year ago

web-local-storage v0.1.11

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.1.10

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

3 years ago

0.1.3

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago