We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399a054 commit e7b8b05Copy full SHA for e7b8b05
README.md
@@ -1 +1,18 @@
1
-# ipfs-race
+# IPFS Race
2
+
3
+Resolve an IPFS path using multiple gateways and methods to get data the fastest.
4
5
+```
6
+npm install ipfs-race
7
8
9
+```typescript
10
+import {resolve} from "ipfs-race";
11
12
+resolve("QmaiJczLW9X1Gk7rQH7CgYCuquLZMbdWB6hhqznDBoqdLE")
13
+ .then(({response, urlResolvedFrom}) => {
14
+ console.log("received data first from: ", urlResolvedFrom);
15
+ console.log("data: ", await response.json());
16
+ })
17
+ .catch(console.error);
18
0 commit comments