ngx-nepali-number-to-words
Angular package that converts number into Nepali words.
Installation
Use Node Package Manager npm to install ngx-nepali-number-to-words.
npm install ngx-nepali-number-to-words
Supported Word Formats
Library supports two word formats.
enum WORD_FORMAT {
TEXT = 'text',
MONEY = 'money'
};
text
format displays number's corresponding Nepali words.
money
format displays number's corresponing words as Nepali moeny.
Usage
Import NgxNepaliNumberToWordsModule
in the root module(AppModule
):
// Import module;
You can use ngx-nepali-number-to-words
as both Angular service
& pipe
.
- Using as Angular
service
in your component.
Component:
//...; 2 Using as Angular `pipe` in your template.```html <p>{{ 90945 | nepaliWords }}:</p> नब्बे हजार नौ सय पैंतालीस <p>{{ 90945 | nepaliWords: 'money' }}:</p> नब्बे हजार नौ सय पैंतालीस रूपैयाँ
Creator
Hikmat Sijapati
License
ngx-nepali-number-to-words is MIT licensed.