1.0.8 • Published 9 months ago

french-numbers-to-words v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
9 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

9 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year 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