UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

20 lines (14 loc) 344 B
'use strict' const print = require('../../utils').print module.exports = { command: 'version', describe: 'Shows IPFS repo version information', builder: {}, handler (argv) { argv.resolve((async () => { const ipfs = await argv.getIpfs() const version = await ipfs.repo.version() print(version) })()) } }