Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ordinalize

1.0.2 • Public • Published

Ordinalize

Minimal ordinal calculator for any numeric input :)

Usage

const ordinalize = require('ordinalize')
or
import ordinalize from 'ordinalize'

Examples

ordinalize(-0) // "0th"

ordinalize(1) // "1st"

ordinalize(-1) // ""

ordinalize("3") // "3rd"

Install

npm i ordinalize

DownloadsWeekly Downloads

20

Version

1.0.2

License

ISC

Unpacked Size

2.15 kB

Total Files

4

Last publish

Collaborators

  • avatar