UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

20 lines (14 loc) 363 B
'use strict' const print = require('../../utils').print module.exports = { command: 'ls', describe: 'Get your list of subscriptions', builder: {}, handler (argv) { argv.resolve((async () => { const ipfs = await argv.getIpfs() const subscriptions = await ipfs.pubsub.ls() subscriptions.forEach(sub => print(sub)) })()) } }