thise

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)

Package Sidebar

Install

npm i thise

Weekly Downloads

3

Version

0.2.2

License

ISC

Unpacked Size

4.96 kB

Total Files

7

Last publish

Collaborators

  • ycm.jason