digit-words
v0.0.6
Published
Digits to words converted. Language support: English, Polish, Czech.
Downloads
19
Maintainers
Readme
Digit Words
Simple and small library for converting digits to words. Contributors all welcome!
| Language | Supported | | -------- | --------- | | Polish | Yes | | English | Yes | | Czech | Yes |
Installation
Using npm:
npm i digit-words
Usage
import DigitWords from 'digit-words';
const digitWords = new DigitWords(); // default is 'pl'
const result = digitWords.toWords(1234);
// jeden tysiąc dwieście trzydzieści cztery
toWords(value: number)
| Property | Type | Required? | Default | | -------- | ------ | --------- | ------- | | value | number | Yes | |
License
MIT