Skip to content

Commit bcf2811

Browse files
committed
update README Quickstart
1 parent 75c4395 commit bcf2811

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ Fetch Blob using [fastblob.com](https://fastblob.com)
66
``` js
77
import fetch from "@fastblob/fastblob-fetch";
88

9-
const response = await fetch("https://example.website.fastblob.com/big-buck-bunny/Big%20Buck%20Bunny_1080p_30fps.mp4")
9+
// For example, your fastblob domain is `example.website.fastblob.com`
10+
const url = "https://example.website.fastblob.com/big-buck-bunny/Big%20Buck%20Bunny_1080p_30fps.mp4";
11+
12+
const response = await fetch(url);
13+
const blob = await response.blob();
14+
const newURL = URL.createObjectURL(blob);
15+
console.log(newURL);
1016
```
1117

1218
## More Info

0 commit comments

Comments
 (0)