summaryrefslogtreecommitdiff
path: root/docs/runtime/web_storage_api.md
blob: 05ed8b648b02ca1a2a6c80c964dbff32770f3122 (plain)
1
2
3
4
5
6
7
8
9
## Web Storage API

As of Deno 1.10, the Web Storage API (`localStorage` & `sessionStorage`) was
introduced, which through `localStorage` allows persistent storage, whereas
`sessionStorage` is a non-persistent memory-based storage.

To use persistent storage, you need to pass the `--location` flag. The location
for persistent storage is listed in `deno info`, and additionally passing the
`--location` will give you the path for the specified origin.