tinymask
A js mask simple like killing zombies =).
Usage
Install it from npm using npm install --save tinymask
var TinyMask = var maskInstance = ; var result = maskInstance; console; //1234-5678
By default, we use this translation:
9
-> Accept numbersA
-> Accept alphaS
-> Accept alphanumerics*
-> Accept all
Options
You can pass options for the mask. We use the defaults:
var maskInstance = ;
translation (Object | optional)
You can add or override any of the translation keys. Ex:
var maskInstance = ;
invalidValues (Array | optional)
You can set ignored value. If any translation result on one of this values, that will be ignored.
var maskInstance = ;
Release Notes
1.0.2
- Fixing editing after complete mask.
1.0.1
- Fixing fixed masks.
1.0.0
- Releasing the first version of the mask.