Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A JS library for adding a “human touch” to data.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
JS library useful for adding a “human touch” to data. 

Examples:

intcomma (4500000 = 4,500,000)

intword (1000000 = 1.0 million)

naturalDay (15 April 2012 16:25:30 = Today)

ordinal (3 = 3rd)

filesizeformat (1234567890 = 1.15 Gb)

linebreaks (Play\ning with blank lines = <p>Play<br />ing with blank lines</p>)

linebreaksbr (Play\ning with blank lines = Play<br />ing with blank lines)

pluralize (1, "y", "ies" = y)

truncatechars ("hello world", 10 = "hello w...")

truncatewords ("Playing with truncate words", 3 = Playing with truncate ...)
Something went wrong with that request. Please try again.