You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2021. It is now read-only.
This module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:
38
36
39
37
```js
40
-
const { resolver } =require('ipfs-http-response')
38
+
import { resolver } from'ipfs-http-response'
41
39
42
-
(async () => {
43
-
constresult=awaitresolver.cid(ipfsNode, ipfsPath)
44
-
console.log(result)
45
-
})()
40
+
constresult=awaitresolver.cid(ipfsNode, ipfsPath)
41
+
console.log(result)
46
42
```
47
43
48
44
If `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:
0 commit comments