shvaikalesh/humanize-ordinal


Tiny ordinal humanization utilizing Intl.PluralRules

Language: JavaScript


humanize-ordinal

Tiny ordinal humanization utilizing Intl.PluralRules.

Up and running

Get the package from npm:

npm install humanize-ordinal --save

Use default export:

import humanizeOrdinal from "humanize-ordinal"

humanizeOrdinal(1)  // => "1st"
humanizeOrdinal(12) // => "12th"
humanizeOrdinal(23) // => "23rd"

Currently, only English is supported.

Project Statistics

Sourcerank 2
Repository Size 0 Bytes
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Alexey Shvayka

Packages Referencing this Repo

humanize-ordinal
Tiny ordinal humanization utilizing Intl.PluralRules
Latest release 1.0.0 - Published

Something wrong with this page? Make a suggestion

Last synced: 2018-10-14 04:00:10 UTC

Login to resync this repository