mother-mask
The Mother-Mask is a simple and definitive Js library to implement text mask using a pattern.
How to Install
$ npm install mother-mask --save
How to Use
// get the input element // vanilla javascript var phoneInputElement = document; // Jquery var phoneInputElement = 0; // bind the element with the mask MotherMask; // create dynamic mask MotherMask;