french-ordinals
    TypeScript icon, indicating that this package has built-in type declarations

    4.2.5 • Public • Published

    french-ordinals

    A very simple Node.js module that gives the ordinal representation of numbers in French: douzième for 12 etc. Based on a static list. Works up to 100.

    For 1, you can add a second parameter (M or F) to distinguish between premier and première, M being default.

    Installation

    npm install french-ordinals

    Usage

    var ordinals = require('french-ordinals');
    
    // première
    console.log(`1 F => ${ordinals.getOrdinal(1, 'F')}`);
    
    // douzième
    console.log(`12 => ${ordinals.getOrdinal(12)}`);

    dependencies

    N/A

    Install

    npm i french-ordinals

    DownloadsWeekly Downloads

    378

    Version

    4.2.5

    License

    Apache-2.0

    Unpacked Size

    18.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • ludan.stoeckle