JS Humanize (Give data a human touch)
If you are familiar with Django you are familiar with a nice set of template tags called "humanize". In essence it turns data such as "13 April 2012" into "2 days ago" or "1000000000" into "1.0 billion". JS Humanizer is a jQuery counterpart to the Django humanize template tags we wrote and thought that others might find it useful too.
(
19 comments
| 40 points
| on HN
)
That pedantry aside, it seems like a decent enough chunk of code, and it's very easy to read. More libraries should be this clean.
EDIT: Actually having now looked at the code, it seems a lot of it is specifically using the phpjs library.
1) Gb should be GiB
2) it would be lovely to see some internationalisation support.
Don't know why this has happened to you...