From 3115bab6e40dcc7b3714bfc0082a822e394a5cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 4 Jun 2025 11:27:38 +0400 Subject: [PATCH] Add Deno hints to the docs --- docs/getting-started/how-to-add.md | 4 ++++ docs/nodejs.md | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/getting-started/how-to-add.md b/docs/getting-started/how-to-add.md index a69f8779b..a35882595 100644 --- a/docs/getting-started/how-to-add.md +++ b/docs/getting-started/how-to-add.md @@ -28,6 +28,10 @@ $ yarn add -D remotestoragejs ```sh [bun] $ bun add -D remotestoragejs ``` + +```sh [deno] +$ deno add npm:remotestoragejs +``` ::: ## Examples diff --git a/docs/nodejs.md b/docs/nodejs.md index cd46472f0..0e2198b68 100644 --- a/docs/nodejs.md +++ b/docs/nodejs.md @@ -74,6 +74,14 @@ want to consider as an option when writing non-browser applications. it may be necessary to set `global.fetch` with a polyfill such as [node-fetch](https://www.npmjs.com/package/node-fetch). +::: tip +You may also want to consider modern JavaScript/TypeScript runtimes other than +Node.js, depending on your use case. With [Deno](https://deno.com/) for +example, you have `localStorage` (but not `IndexedDB`) included, so it does in +fact cache your data similar to how a browser would do it. +::: + + ## Examples - [hubot-remotestorage-logger](https://github.com/67P/hubot-remotestorage-logger),