在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs/js-ipfs-http-response开源软件地址:https://github.com/ipfs/js-ipfs-http-response开源编程语言:JavaScript 100.0%开源软件介绍:js-ipfs-http-response
Lead MaintainerInstallation
UsageCreating HTTP ResponseThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page. import { getResponse } from 'ipfs-http-response'
const result = await getResponse(ipfsNode, ipfsPath)
console.log(result) Using protocol-agnostic resolverThis module also exports the used ipfs import { resolver } from 'ipfs-http-response'
const result = await resolver.cid(ipfsNode, ipfsPath)
console.log(result) If import { resolver } from 'ipfs-http-response'
const result = await resolver.directory(ipfsNode, ipfsPath, cid)
console.log(result)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论