storageprovider
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

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

Package Sidebar

Install

npm i storageprovider

Weekly Downloads

1

Version

1.4.1

License

MIT

Unpacked Size

24.9 kB

Total Files

22

Last publish

Collaborators

  • grisu118