0.1.0
localstorage polyfill for Deno runtime. Until supported by them
Repository
Current version released
3 years ago
Dependencies
std
Versions
localStorage
A polyfill for window.localStorage on Deno runtime
(until it supported officialy)
Usage
import 'deno.land/x/localstorage/mod.ts'
const {localStorage} = window
localStorage.setItem('age', 21)
console.log(localStorage.age)
Supported env variables
name | description | default |
---|---|---|
LOCAL_STORAGE_PATH | define where will your namespace is | $HOME/.cache/deno/$NAMESPACE |
LOCAL_STORAGE_NAMESPACE | define your namespace. | default |
WARNING
Library tested on linux only please wait for windows support, and if you have a mac please test it and contact me i’ll be plesed.