如何在没有node.js的JavaScript中创建一个ipfs repo?如何创建一个ipfs repo
我在计算如何创建内存存储以传递给IpfsRepo
类时遇到了一些问题。
var repo = new IpfsRepo('example', ?)
如何在没有node.js的JavaScript中创建一个ipfs repo?如何创建一个ipfs repo
我在计算如何创建内存存储以传递给IpfsRepo
类时遇到了一些问题。
var repo = new IpfsRepo('example', ?)
您将需要使用的接口,数据存储模块提供的MemoryStore的:https://github.com/ipfs/interface-datastore/blob/master/src/memory.js
挑选不同的回购存储后端是在构造函数中的选项来完成。您可以在new IPFSRepo()
上查看这些内容,请参阅示例:https://github.com/ipfs/js-ipfs-repo/blob/master/src/default-options-browser.js