UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

17 lines (12 loc) 251 B
'use strict' module.exports = { command: 'shutdown', describe: 'Shut down the ipfs daemon', builder: {}, handler (argv) { argv.resolve((async () => { const ipfs = await argv.getIpfs() return ipfs.shutdown() })()) } }