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