text-mask

Input mask for React, Angular, Ember, Vue, & plain JavaScript

Github stars Tracking Chart

Text Mask

⚠️ This library is not maintained. Pull-requests and issues are not monitored. I'm happy to list alternative libraries here. If you know a good alternative, 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!

Main metrics

Overview
Name With Ownertext-mask/text-mask
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 8)
Platform
License:The Unlicense
所有者活动
Created At2016-01-22 23:19:59
Pushed At2025-05-26 18:32:18
Last Commit At2025-05-26 21:32:18
Release Count301
Last Release Nameaddons-v3.8.0 (Posted on )
First Release Nameangular2-v0.4.3 (Posted on )
用户参与
Stargazers Count8.2k
Watchers Count96
Fork Count831
Commits Count495
Has Issues Enabled
Issues Count698
Issue Open Count270
Pull Requests Count252
Pull Requests Open Count64
Pull Requests Close Count82
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private