Package Exports
- ipfs-http-response
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ipfs-http-response) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
js-ipfs-http-response
Creates an HTTP response from an IPFS Hash
Lead Maintainer
Installation
npm install ipfs-http-response
Usage
This project consists on creating a HTTP response from an IPFS Hash. This response can be a file, a directory list view or the entry point of a web page.
const ipfsHttpResponse = require('ipfs-http-response')
ipfsHttpResponse(ipfsNode, ipfsPath)
.then((response) => {
...
})