2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-17 19:21:21 +03:00

Update docs and meta info

This commit is contained in:
Alexander Shabunevich
2019-09-25 16:36:31 +03:00
parent 1c9f047753
commit bd2d5e0075
3 changed files with 90 additions and 77 deletions
+6 -2
View File
@@ -1,6 +1,6 @@
# Maska
Simple zero-dependency input mask for Vue.js and vanilla JS.
Simple zero-dependency input mask for Vue.js and vanilla JS. [Demo and examples](https://beholdr.github.io/maska/).
- No dependencies
- Small size (~2 Kb gziped)
@@ -8,6 +8,10 @@ Simple zero-dependency input mask for Vue.js and vanilla JS.
- Supports repeat symbols
- Works on any input (custom or native)
## Install
npm install maska
## Usage with Vue.js
If you load Vue.js via `<script>` then just add `v-maska` directive to your input:
@@ -42,7 +46,7 @@ export default {
## Usage with vanilla JS
Just load script `maska.js` and init it, passing element(s) or selector expression:
Just load script `maska.js` and init it, passing element(s) or `document.querySelector` expression:
``` javascript
var mask = Maska.create('.masked');