【文件属性】:
文件名称:is-ipfs:一组实用程序,可帮助识别Web上的IPFS资源
文件大小:15KB
文件格式:ZIP
更新时间:2021-02-02 22:58:36
ipfs IPFSJavaScript
is-ipfs :detective_selector:
一组有助于识别资源的实用程序
首席维护者
安装
通过npm在Node.js中
$ npm install --save is-ipfs
浏览器:Browserify,Webpack,其他捆绑软件
实际上,发布到npm并需要加载的代码是ES5转译版本,其中添加了正确的垫片。 这意味着您可以要求它并与您喜欢的捆绑器一起使用,而无需调整资产管理过程。
const isIPFS = require ( 'is-ipfs' )
在浏览器中通过[removed]标记
通过脚本标记加载此模块将使IsIpfs obj在全局名称空间中可用。
< script src =" https://unpkg.com/is-ipfs/dist/index.min.js " > </ script >
<!-- OR -->
< script src =" https://unpkg.com/is-ipfs/dist/index.js " > </ script >
用法
const isIPFS = require ( 'is-ipfs' )
isI
【文件预览】:
is-ipfs-master
----src()
--------index.js(5KB)
----.npmignore(10B)
----.travis.yml(977B)
----LICENSE(1KB)
----test()
--------test-subdomain.spec.js(8KB)
--------test-path.spec.js(5KB)
--------test-cid.spec.js(4KB)
--------test-url.spec.js(3KB)
--------test-multihash.spec.js(1KB)
--------test-multiaddr.spec.js(6KB)
----README.md(9KB)
----.gitignore(585B)
----CHANGELOG.md(6KB)
----package.json(2KB)