Skip to content

text-mask/text-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a3052a1 · Jul 19, 2023
Jul 30, 2018
May 7, 2018
May 1, 2018
Jul 16, 2016
Mar 30, 2017
Jul 26, 2018
Apr 27, 2018
Oct 1, 2022
May 7, 2018
Jul 25, 2018
Jun 14, 2018
Nov 5, 2016
Mar 20, 2017
Jun 21, 2017
Jun 12, 2017
Sep 12, 2016
Jul 19, 2023
Apr 18, 2017
Aug 21, 2016
May 29, 2016
May 7, 2018
May 7, 2018
Jun 26, 2016

Repository files navigation

Text Mask

⚠️ This library is not maintained. Pull-requests and issues are not monitored. Below are some alternatives to text-mask (Please note that the alternatives below are not checked or verified by the maintainers of Text Mask):

If you know other alternatives that should be listed here, email me at msafi@msafi.com.


Build Status

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, Angular 2, Ember, and Vue.

Live demo

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

Flexible

Text Mask is very configurable and allows you to create any type of input mask with minimal APIs. See the documentation for details.

Extendable

You can easily expand the base functionality of Text Mask with addons for more mask types. Checkout existing addons.

Robust

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).

For any questions, suggestions, or feature requests

Please file an issue!