5.0.1 • Published 5 years ago

ts-storage v5.0.1

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

ts-storage

Type-safe storage library with fallback values

NPM Version Downloads Stats

A simple library for interacting with the browser's local storage in a type-safe manner (with TypeScript).

Installation

npm install ts-storage --save

Usage

import * as Storage from "ts-storage";

Storage.set("foo", 5);

const foo = Storage.get("foo", 0).value;
// foo is guaranteed to be a number.
5.0.1

5 years ago

5.0.0

5 years ago

4.0.0

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago