ipfs
Version:
JavaScript implementation of the IPFS specification
18 lines (13 loc) • 343 B
JavaScript
const print = require('../../../utils').print
module.exports = {
command: 'subs',
describe: 'Show current name subscriptions.',
handler (argv) {
argv.resolve((async () => {
const ipfs = await argv.getIpfs()
const result = await ipfs.name.pubsub.subs()
result.forEach(s => print(s))
})())
}
}