From f2282a17918a478e538d75139f62c432290f59f8 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Tue, 19 Apr 2016 13:48:27 +0900 Subject: [PATCH] improve the style of now-list --- bin/now-list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/now-list b/bin/now-list index e724fd6..71eea26 100755 --- a/bin/now-list +++ b/bin/now-list @@ -57,9 +57,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');