1.4.1 • Published 5 years ago

storageprovider v1.4.1

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

Storage Provider

Build Status codecov npm license

Small library without any dependencies for accessing localStorage, sessionStorage and url get params over the same interface.

Getting Started

Install with npm npm i --save storageprovider

import { StorageProvider } from "storageprovider";

const storage = StorageProvider.localStorage("aPrefix");
storage.set("KEY", "a special value");

// ... some code

storage.getAsString("KEY"); // returns "a special value"
storage.getAsNumber("KEY"); // returns undefined

For details see api doc

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago