imaskjs

vanilla javascript input mask

README

imaskjs

vanilla javascript input mask
Build Status Financial Contributors on Open Collective Coverage Status npm version License: MIT lerna


Features

get and set raw and unmasked values easily
no external dependencies
supports overwrite mode
supports web components
supports contenteditable
RegExp mask
Number mask (integer and decimal)
Date mask (various format support, autofix mode)
Pattern mask
  - show placeholder always and only when necessary
  - unmasked value can contain fixed parts
  - optional input parts (greedy)
  - custom definitions
  - reusable blocks
  - Enum and Range masks
convert and format values with pipe

Plugins


Install

npm install imask and import IMask from 'imask';

or use CDN:

``

Build & Test

npm run make

Compatibility

Supports all major browsers and IE11+ need to support older?

Getting help

- check answers on stackoverflow.com
- ask question in discussions

Contributors


Code Contributors


This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors


Become a financial contributor and help us sustain our community. [Contribute]

Individuals



Organizations


Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]