Installation $ npm install --save date-ago Usage let ago = dateAgo(timestamp); ago.short // '5m' ago.full // '5 minutes ago' ago.num // '27.04.2017'