Wondering what’s next for npm?Check out our public roadmap! »

    ordinalize

    1.0.2 • Public • Published

    Ordinalize

    Minimal ordinal calculator for any numeric input :)

    Usage

    const ordinalize = require('ordinalize')
    or
    import ordinalize from 'ordinalize'
    
    

    Examples

    ordinalize(-0) // "0th"
    
    ordinalize(1) // "1st"
    
    ordinalize(-1) // ""
    
    ordinalize("3") // "3rd"
    

    Install

    npm i ordinalize

    DownloadsWeekly Downloads

    6

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    2.15 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar