Skip to content

Commit e7b8b05

Browse files
authored
Update README.md
1 parent 399a054 commit e7b8b05

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
# ipfs-race
1+
# 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

Comments
 (0)