digit-to-word-converter
v1.0.5
Published
A package to convert numbers to their word representation. Eg: 123 => एक सय तेतीस
Downloads
13
Maintainers
Readme
CONVERT DIGIT TO WORD
Project that converts numbers to words in multiple languages (ENGLISH | NEPALI)
Table of Contents
Installation
Open a terminal or command prompt and run:
Using npm:
$ npm i digit-to-word-converter
Using yarn:
$ yarn add digit-to-word-converter
Using pnpm:
$ pnpm add digit-to-word-converter
You should see the digit-to-word-converter in your package.json
Features
- Convert digit to word
- Multi language
- Focus on high performance
Usage
import {digitToWord} from 'digit-to-word-converter';
console.log(digitToWord(1)));
// output -> एक
console.log(digitToWord(45)));
// output -> पैँतालीस
console.log(digitToWord(535000)));
// output -> पाँच लाख पैंतीस हजार
[!IMPORTANT] It is capable to return up to 1 trillion (10^12) (१ हजार उनान सय अर्व)