react-ipfs-url:使用URL.createObjectURL从IPFS路径中获取URL

时间:2021-02-04 14:47:18
【文件属性】:
文件名称:react-ipfs-url:使用URL.createObjectURL从IPFS路径中获取URL
文件大小:105KB
文件格式:ZIP
更新时间:2021-02-04 14:47:18
react url ipfs infura create-object-url react-ipfs-url 使用从IPFS路径中获取URL。 安装 $ npm install react-ipfs-url 该库是用现代JavaScript编写的,并以CommonJS和ES模块的已编译变体形式发布。 如果您以较旧的浏览器为目标,请确保相应地进行翻译。 用法 使用组件: import React from 'react' ; import { IpfsUrl } from 'react-ipfs-url' ; const ipfs = /* your ipfs node, perhaps provide it via context */ ; con
【文件预览】:
react-ipfs-url-master
----.gitignore(46B)
----README.md(6KB)
----CHANGELOG.md(1KB)
----test()
--------public-api.test.js(228B)
--------provider-gateway.test.js(3KB)
--------__mocks__()
--------provider-ipfs-offline.test.js(2KB)
--------hook.test.js(8KB)
--------provider-infura.test.js(2KB)
--------provider-ipfs.test.js(2KB)
--------file-url.test.js(619B)
--------component.test.js(4KB)
--------util()
----LICENSE(1KB)
----package.json(2KB)
----src()
--------file-url.js(3KB)
--------hook.js(2KB)
--------component.js(521B)
--------providers()
--------index.js(98B)
----.babelrc(80B)
----.travis.yml(135B)
----.editorconfig(248B)
----.eslintrc.json(348B)
----package-lock.json(358KB)

网友评论