1.0.8 • Published 8 months ago

french-numbers-to-words v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

French numbers to words converter

This package converts numbers to their written forms in French language. Version 1.0.0 introduces breaking changes, please update carefully.

Installation

  npm install french-numbers-to-words

Usage

  import FrenchNumbersToWords from 'french-numbers-to-words';
  const numberToWords = new FrenchNumbersToWords('fr'); // 'fr' for French or 'be' for Belgian French
  numberToWords.convert(12345)
  // The result is an object like this
  {
    parts: [
      { number: 12, text: 'douze', unit: 'mille' },
      { number: 345, text: 'trois-cent-quarante-cinq', unit: '' }
    ],
    fullText: 'douze-mille-trois-cent-quarante-cinq'
  }
1.0.8

8 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

0.2.0

1 year ago

0.1.7

1 year ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago