thize

0.2.2 • Public • Published

thize

Build Status codecov

Add st/nd/rd/th to your number.

Install

npm install --save thize

Or if you are British,

npm install --save thise

Usage

const thize = require('thize');
 
thize(1);   // '1st'
thize(58);  // '58th'
thize(202); // '202nd'
thize(-43); // '-43rd'
 
thize.suffix(51); // 'st'

Author

Jason Yu (me@ycmjason.com)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    23
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    23
  • 0.2.1
    0
  • 0.2.0
    0

Package Sidebar

Install

npm i thize

Weekly Downloads

23

Version

0.2.2

License

ISC

Unpacked Size

5.2 kB

Total Files

7

Last publish

Collaborators

  • ycm.jason