Browse Source

Merge pull request #38 from zeit/fix/now-list-style

Improve the style of now-list
master
Guillermo Rauch 9 years ago
parent
commit
fc1026d2b8
  1. 4
      bin/now-list

4
bin/now-list

@ -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');

Loading…
Cancel
Save