在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs-inactive/js-libp2p-ipfs-nodejs开源软件地址:https://github.com/ipfs-inactive/js-libp2p-ipfs-nodejs开源编程语言:JavaScript 100.0%开源软件介绍:Deprecation NoticeThis module has been deprecated in favour of:
This libp2p build has support for:
Table of ContentsInstallnpm> npm i libp2p-ipfs-nodejs Use in Node.jsconst Node = require('libp2p-ipfs-nodejs') UsageCreate a libp2p-ipfs-nodejs nodeconst PeerInfo = require('peer-info')
const Node = require('libp2p-ipfs-nodejs')
PeerInfo.create((err, pi) => {
if (err) {
throw err // handle the err
}
pi.multiaddr.add('/ip4/0.0.0.0/tcp/0')
const node = new Node(pi)
node.start((err) => {
if (err) {
throw err // handle the err
}
console.log('Node is ready o/')
})
}) APIAPI docs can be found at https://github.com/libp2p/js-libp2p#usage ContributeFeel free to join in. All welcome. Open an issue! This repository falls under the IPFS Code of Conduct. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论