1.0.4 • Published 4 years ago

num-to-nep-words v1.0.4

Weekly downloads
5
License
ISC
Repository
-
Last release
4 years ago

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