ipcopy
Version:
Copy local/public IP-address into clipboard
16 lines (13 loc) • 330 B
JavaScript
const argv = require('optimist')
.usage('Copy IP-address to Clipboard')
.alias('ips', 'ipServer')
.alias('show', 'showChoices')
.argv
;
const ipArgv = () => {
const copyMode = argv._[0]
const { showChoices, ipServer } = argv
return [copyMode, showChoices, ipServer]
}
module.exports = ipArgv