imask.js: A Vanilla JavaScript Input Mask

imaskjs

vanilla javascript input mask

Features

  • 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
    • 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:

<script src="https://unpkg.com/imask"></script>

Build & Test

npm run make

Compatibility

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

Getting help

Support Development

Paypal

Download Details:

Author: uNmAnNeR
The Demo/Documentation: View The Demo/Documentation
Download Link: Download The Source Code
Official Website: https://github.com/uNmAnNeR/imaskjs
License: MIT

#javascript #imask

imask.js: A Vanilla JavaScript Input Mask
8.85 GEEK