|
|
@ -75,9 +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 time = ms(current - created, { long: true }) + ' ago'; |
|
|
|
const time = ms(current - created) + ' ago'; |
|
|
|
return [ uid, time, `https://${url}` ]; |
|
|
|
}), { align: ['l', 'r', 'l'] }); |
|
|
|
}), { align: ['l', 'r', 'l'], hsep: ' '.repeat(8) }); |
|
|
|
return chalk.bold(name) + '\n\n' + indent(t, 2).split('\n').join('\n\n'); |
|
|
|
}).join('\n\n'); |
|
|
|
|
|
|
|