summaryrefslogtreecommitdiff
path: root/docs/runtime/web_storage_api.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/runtime/web_storage_api.md')
-rw-r--r--docs/runtime/web_storage_api.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/runtime/web_storage_api.md b/docs/runtime/web_storage_api.md
new file mode 100644
index 000000000..05ed8b648
--- /dev/null
+++ b/docs/runtime/web_storage_api.md
@@ -0,0 +1,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.