Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/milanvrekic/JS-humanize

A JS library for adding a “human touch” to data.
https://github.com/milanvrekic/JS-humanize

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

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 =

Play
ing with blank lines

)

linebreaksbr (Play\ning with blank lines = Play
ing with blank lines)

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

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

truncatewords ("Playing with truncate words", 3 = Playing with truncate ...)