Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 849 Bytes

readme.md

File metadata and controls

33 lines (25 loc) · 849 Bytes

num-to-nepali-words

Convert english number(Arabic numerals) into Nepali words. Both in Nepali and English language.

Example

12345       => बाह्र हजार, तीन सय पैँतालीस
6789        => छ हजार, सात सय उनान्नब्बे
12345       => Twelve Thousand, Three Hundred and Forty Five
10000000001 => Ten Arab, One

Usage

npm i num-to-nep-words
const numToNepaliWords = require('num-to-nep-words')

console.log(numToNepaliWords(123, 'np')) // एक सय तेईस
console.log(numToNepaliWords(123, 'en')) // One Hundred and Twenty Three

In browser

<!--  1.0.4 is the version-->
<script src="https://unpkg.com/[email protected]/conversion.js"></script>

Demo

https://the-value-crew.github.io/num-to-nepali-words-demo/