Ordinal Numbers
Add the ordinal indicator to a integer
Install
npm install --save ordinal-numbers # OR install it globally for cli use npm install -g ordinal-numbers
Use
var ordinal = // => '0' // => '13th'
or in with import
// => '61st' // => '22nd'
or if you installed it globally,
ordinal 83 # => 83rd
API
ordinal(integer)
convert an integer to a string with the ordinal indicator appended.
Bugs
Please report any bugs to: https://github.com/makenova/ordinal-numbers/issues
License
Licensed under the MIT License: https://opensource.org/licenses/MIT