Use the package manager [npm] to install:
npm install number-to-words-uz
const numberToWordsUz = require("number-to-words-uz");
import numberToWordsUz from "number-to-words-uz"; // ES6
numberToWordsUz.convert(132, { lang: "uzLatin" });
numberToWordsUz.convert(132); // default lang: uzCyril
numberToWordsUz.convert(-132);
Currently supported languages are:
Language | lang |
---|---|
Uzbek latin | uzLatin |
Uzbek cyril | uzCyril |
By default
uzCyril