humanize-ordinal
v1.0.0
Published
Tiny ordinal humanization utilizing Intl.PluralRules
Downloads
3
Maintainers
Readme
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.