0.0.6 • Published 6 years ago
digit-words v0.0.6
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-wordsUsage
import DigitWords from 'digit-words';
const digitWords = new DigitWords(); // default is 'pl'
const result = digitWords.toWords(1234);
// jeden tysiąc dwieście trzydzieści czterytoWords(value: number)
| Property | Type | Required? | Default |
|---|---|---|---|
| value | number | Yes |
License
MIT