JSPM

ordinal-number

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q38503F
  • License ISC

Contains light weight util method for converting numbers into ordinal.

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”