Have ideas to improve npm?Join in the discussion! »

    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)

    Install

    npm i thize

    DownloadsWeekly Downloads

    37

    Version

    0.2.2

    License

    ISC

    Unpacked Size

    5.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar