vue-tafqeet

2.0.0 • Public • Published

Vue-Tafqeet

Tafqeet means converting numbers , times , months to Arabic characters, and this code converts any number from 0 to 99 trillion to Arabic characters. Tafqeet is often used in financial transactions to explain numbers in letters to prevent counterfeiting.

Install Vue-Tafqeet

npm i vue-taqfeet --save 

and in main.js add

import Taqfeet from 'vue-taqfeet' 
Vue.use(Tafqeet)

Usage

for converting any number to arabic words :

this.$tafqeet.convert(2500);
//ألفان وخمسمائة

for converting time :

for 12 time formt

this.$tafqeet.convertTime('10:10AM' , 12)
// العاشرة و عشر دقائق صباحاً

for 24 time formt

this.$tafqeet.convertTime('24:00' , 24)
// ألثانية عشر منتصف ألليل

for converting months

this.$tafqeet.convertMonth('2')
// ألثانية عشر منتصف ألليل

Readme

Keywords

none

Package Sidebar

Install

npm i vue-tafqeet

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

52.5 kB

Total Files

9

Last publish

Collaborators

  • ox9n