0.0.7 • Published 11 months ago

ts-storage-wrapper v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

ts-storage-wrapper

Storage on in the browser is not so great. ts-storage-wrapper gives you super powers.

Without ts-storage-wrapper:

  • 🚨 .getItem requires JSON.parse to get the item

ts-storage-wrapper smooths over these hard edges, just like a CSS reset does in the browser.

With ts-storage-wrapper:

  • .getItem does not requires JSON.parse to get the item

Example

// Import in a single file, then across your whole project...
import StorageWrapper from "ts-storage-wrapper";


## Get Started

1. Install: `npm i ts-storage-wrapper`



This provides the types you intend and also signals to the developer that this is _slightly_ unsafe.
0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago