Skip to content

Commit f68b028

Browse files
authored
docs: Add Deno how-to to README.md
1 parent 7977d76 commit f68b028

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
2222

2323
### UMD
2424

25-
You can now use plain `<script>`s to import supabase-js from CDNs, like:
25+
You can use plain `<script>`s to import supabase-js from CDNs, like:
2626

2727
```html
2828
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
@@ -48,7 +48,7 @@ Then you can use it from a global `supabase` variable:
4848

4949
### ESM
5050

51-
You can now use type="module" `<script>`s to import supabase-js from CDNs, like:
51+
You can use `<script type="module">` to import supabase-js from CDNs, like:
5252

5353
```html
5454
<script type="module">
@@ -60,6 +60,15 @@ You can now use type="module" `<script>`s to import supabase-js from CDNs, like:
6060
</script>
6161
```
6262

63+
64+
### Deno
65+
66+
You can use supabase-js in the Deno runtime via esm.sh:
67+
68+
```js
69+
import { createClient } from 'https://esm.sh/@supabase/supabase-js@2'
70+
```
71+
6372
### Custom `fetch` implementation
6473

6574
`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:

0 commit comments

Comments
 (0)