Skip to content

Commit fbca1e0

Browse files
authored
Merge pull request #1329 from remotestorage/docs/deno
Add Deno hints to the docs
2 parents 9661d38 + 3115bab commit fbca1e0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/getting-started/how-to-add.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ $ yarn add -D remotestoragejs
2828
```sh [bun]
2929
$ bun add -D remotestoragejs
3030
```
31+
32+
```sh [deno]
33+
$ deno add npm:remotestoragejs
34+
```
3135
:::
3236

3337
## Examples

docs/nodejs.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ want to consider as an option when writing non-browser applications.
7474
it may be necessary to set `global.fetch` with a polyfill such as
7575
[node-fetch](https://www.npmjs.com/package/node-fetch).
7676

77+
::: tip
78+
You may also want to consider modern JavaScript/TypeScript runtimes other than
79+
Node.js, depending on your use case. With [Deno](https://deno.com/) for
80+
example, you have `localStorage` (but not `IndexedDB`) included, so it does in
81+
fact cache your data similar to how a browser would do it.
82+
:::
83+
84+
7785
## Examples
7886

7987
- [hubot-remotestorage-logger](https://github.com/67P/hubot-remotestorage-logger),

0 commit comments

Comments
 (0)