Javascript Input Mask
- get and set raw and unmasked values easily
- no external dependencies
- supports overwrite mode
- supports web components
- supports contenteditable
- RegExp mask
- Function mask
- Number mask (integer and decimal)
- Date mask (various format support, autofix mode)
- Dynamic/on-the-fly mask
- Pattern mask
- convert and format values with pipe
npm install imask
and import IMask from 'imask';
or use CDN:
<script src="https://unpkg.com/imask"></script>
npm run make
Supports all major browsers. Can also be used with outdated browsers. See how