Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

thize

ycmjason181ISC0.2.2

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

ordinal, number, series, 1st, 2nd, 3rd, 4th, 5th, nth, first, second, third, thize, thise

readme

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)

changelog

CHANGELOG

0.2.2

Chore

  • Added keywords

0.2.1

Improvements

  • Added CHANGELOG.md

0.2.0

Breaking Change

  • thize includes the input number (#3)
  • thize.suffix is used to replace the v0.1.x thize which returns only the suffix (#3)

Improvements

  • Improved logic to calculate the suffix (#1)