summaryrefslogtreecommitdiff
path: root/docs/runtime/web_storage_api.md
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-07-20 16:25:36 +0200
committerGitHub <noreply@github.com>2021-07-20 16:25:36 +0200
commitd744c0c6d9a557bbaa2a23571ffb3acabf19c35a (patch)
tree6f7fb8a71b786e79c48f4b2c11a5a9ca988717e8 /docs/runtime/web_storage_api.md
parent9b9becf1ae256b645e37a7eecf3441f3ae4b8ea5 (diff)
chore: move docs to separate repository
Diffstat (limited to 'docs/runtime/web_storage_api.md')
-rw-r--r--docs/runtime/web_storage_api.md39
1 files changed, 0 insertions, 39 deletions
diff --git a/docs/runtime/web_storage_api.md b/docs/runtime/web_storage_api.md
deleted file mode 100644
index 34a119067..000000000
--- a/docs/runtime/web_storage_api.md
+++ /dev/null
@@ -1,39 +0,0 @@
-## 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.
-
-To learn more about the Web Storage APIs, visit the
-[MDN page on Web Storage](https://developer.mozilla.org/en-US/docs/Web/API/Storage).
-
-### Example
-
-The following snippet accesses the local storage bucket for the current origin
-and adds a data item to it using `setItem()`.
-
-```ts
-localStorage.setItem("myDemo", "Deno App");
-```
-
-The syntax for reading the localStorage item is as follows:
-
-```ts
-const cat = localStorage.getItem("myDemo");
-```
-
-The syntax for removing the localStorage item is as follows:
-
-```ts
-localStorage.removeItem("myDemo");
-```
-
-The syntax for removing all the localStorage items is as follows:
-
-```ts
-localStorage.clear();
-```