|
|
@ -75,8 +75,9 @@ async function list (token) { |
|
|
|
const current = Date.now(); |
|
|
|
const text = sorted.map(([name, deps]) => { |
|
|
|
const t = table(deps.map(({ uid, url, created }) => { |
|
|
|
const _url = chalk.underline(`https://${url}`); |
|
|
|
const time = chalk.gray(ms(current - created) + ' ago'); |
|
|
|
return [ uid, time, `https://${url}` ]; |
|
|
|
return [uid, _url, time]; |
|
|
|
}), { align: ['l', 'r', 'l'], hsep: ' '.repeat(6) }); |
|
|
|
return chalk.bold(name) + '\n\n' + indent(t, 2); |
|
|
|
}).join('\n\n'); |
|
|
|