See it in action, check out the demo page.
Installation and usage
Expected to work with...
IE9+, Android, Samsung Internet, Windows Phone, iOS, Opera, Firefox, Safari, and Chrome
Text Mask is very configurable and allows you to create any type of input mask with minimal APIs.
See the documentation for details.
You can easily expand the base functionality of Text Mask with addons for more mask types.
Checkout existing addons.
Text Mask supports pasting, browser auto-fill, and all operations that a user would expect while interacting with
an input field.
It works on mobile, has no 3rd party dependencies, and has a tiny footprint (less than 4KB gzipped).