ordinal-number
v1.0.3
Published
Contains light weight util method for converting numbers into ordinal.
Downloads
144
Maintainers
Readme
Number To Ordinal postfix
Contains light weight simple util method for converting numbers into ordinal.
Install
npm i ordinal-number
API
numberWithOrdinal(number)
Converts an integer into a string with an ordinal postfix.
const numberWithOrdinal = require('ordinal-number');
numberWithOrdinal(1); => “1st”