Skip to content

A simple little module to add ordinal suffixes to numbers

License

Notifications You must be signed in to change notification settings

jafri/ordinal-suffix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ordinal-suffix

A simple little module to add ordinal suffixes to numbers

installation

npm install --save ordinal-suffix

example

var ordinal = require('ordinal-suffix')

// Output: 1st
ordinal(1)

// Output: 23rd
ordinal(23)

// Output: 70th
ordinal(70)

// Output: 92nd
ordinal(92)

About

A simple little module to add ordinal suffixes to numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages