Package Exports
- ordinal-number
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ordinal-number) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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β