包详细信息

thise

ycmjason28ISC0.2.2

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

ordinal, number, series, 1st

自述文件

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

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)