Skip to content

Kricheldorf/imaskjs

 
 

Repository files navigation

imaskjs

vanilla javascript input mask

Build Status Coverage Status npm version License: MIT lerna

Features

  • get and set raw and unmasked values easily
  • no external dependencies
  • RegExp mask
  • Function mask
  • Number mask (integer and decimal)
  • Date mask (various format support)
  • 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 groups
  • React/Angular/Vue plugins

Further Plans

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?

Docs, Examples, Demo

https://unmanner.github.io/imaskjs/

Many Thanks to

@Viktor Yakovlev

@Alexander Kiselev

Support development

https://www.paypal.me/alexeykryazhev

Packages

No packages published

Languages

  • JavaScript 86.2%
  • Ruby 6.7%
  • HTML 3.7%
  • TypeScript 3.4%