pinteger
v1.0.5
Published
convert persian or arabic number to english number
Downloads
4
Maintainers
Readme
:fire: pInteger Directive :
The pinteger directive is designed for Vue.js, and it facilitates the conversion of Persian or Arabic numbers to English numbers.
:rocket: How to use :
- Using npm, install the pinteger package:
npm install pinteger- Import the package into your main.js file:
import pinteger from 'pinteger' ;- In your main.js, after createApp(App), add the following code to register the directive:
app.directive('pinteger', pinteger);Now you can use this directive in Vue.js:
I. Simple usage:
<input type="text" v-model="myNumber" v-pinteger >II. Usage with Vuetify:
<v-text-field v-model="myNumber" v-pinteger label="myNumber" > </v-text-field>
:memo: Authors
- Email: [email protected]
