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

5.3.0 • 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

Readme

Keywords

Package Sidebar

Install

npm i french-ordinals

Weekly Downloads

408

Version

5.3.0

License

Apache-2.0

Unpacked Size

18.8 kB

Total Files

6

Last publish

Collaborators

  • ludan.stoeckle