pinteger

1.0.4 • Public • Published

🔥 pInteger Directive :

The pinteger directive is designed for Vue.js, and it facilitates the conversion of Persian or Arabic numbers to English numbers.

🚀 How to use :

  1. Using npm, install the pinteger package:
 npm install pinteger
  1. Import the package into your main.js file:
import pinteger from 'pinteger' ;
  1. In your main.js, after createApp(App), add the following code to register the directive:
app.directive('pinteger', pinteger);
  1. 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>

📝 Authors

Package Sidebar

Install

npm i pinteger

Weekly Downloads

26

Version

1.0.4

License

ISC

Unpacked Size

4.31 kB

Total Files

7

Last publish

Collaborators

  • amirhosseinaghaee