ipfs
Version:
JavaScript implementation of the IPFS specification
20 lines (14 loc) • 364 B
JavaScript
const print = require('../../utils').print
module.exports = {
command: 'list',
describe: 'Show peers in the bootstrap list',
builder: {},
handler (argv) {
argv.resolve((async () => {
const ipfs = await argv.getIpfs()
const list = await ipfs.bootstrap.list()
list.Peers.forEach((node) => print(node))
})())
}
}