Text Mask is an input mask library. It can create input masks for phone, date, currency, zip code, percentage, email, and literally anything!
There are convenient wrappers for React and Angular 2. I need help creating wrappers for Ember, Vue, Knockout, and other frameworks. If you can help, email me!
See it in action, check out the demo page.
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 very minimal APIs. See the documentation for details.
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).
Public domain - CC0 1.0 Universal