Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/milanvrekic/JS-humanize
- Owner: milanvrekic
- License: mit
- Created: 2012-04-13T11:32:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-06-17T03:02:45.000Z (over 8 years ago)
- Last Synced: 2024-05-27T11:36:05.784Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 395
- Watchers: 10
- Forks: 72
- Open Issues: 5
-
Metadata Files:
- Readme: README
- License: LICENSE
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 lineslinebreaksbr (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 ...)