node-timeago
node-timeago copied to clipboard
README not consistent with actual output
The README mentions:
var timeago = require('timeago');
var pretty = timeago(+new Date());
console.log(pretty); // just now
From what I tried:
-
timeago(+new Date())
:undefined
, because+new Date()
returns a timestamp which is not supported -
timeago(new Date())
:less than a minute ago
(not "just now")
I like the README version better, could we:
- merge the pending PR that supports timestamps
- add support for "just now"
Thanks!