Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.
/ v-mask Public archive

🔡 Tiny input mask library for Vue.js (directive)

License

probil/v-mask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue input mask

Simple input mask lib for vue.js based on PureMask.js

Installation

This version requires Vue 1.X. If you are looking for Vue 2.X, check it here.

npm install [email protected]

Usage

import Vue from 'vue
import VueMask from 'v-mask'

/** Activate vue.js plugins **/
Vue.use(VueMask);

Now you are ready to use it in the code!

<input type="text" v-mask format="####-##">
<!-- OR -->
<input type="text" v-mask format="##/##/#### ##:##" >

Format description

List of supported placeholders:

Value Format
# Number (0-9)
A Letter in any case (a-z,A-Z)
N Number or letter
X Any symbol

Tests

In TODO

Contributing

PR is welcome!

About

🔡 Tiny input mask library for Vue.js (directive)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Contributors 20