imaskjs

vanilla javascript input mask

Github stars Tracking Chart

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

Docs, Examples, Demo

https://imask.js.org/

Many Thanks to

@Viktor Yakovlev

@Alexander Kiselev

Support Development

Paypal

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]










Main metrics

Overview
Name With OwneruNmAnNeR/imaskjs
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2016-11-10 13:04:29
Pushed At2024-10-11 15:09:36
Last Commit At2024-10-11 18:09:30
Release Count108
Last Release Namev7.6.1 (Posted on 2024-05-21 10:16:35)
First Release Name0.1.0 (Posted on )
用户参与
Stargazers Count5.1k
Watchers Count30
Fork Count266
Commits Count1k
Has Issues Enabled
Issues Count762
Issue Open Count66
Pull Requests Count71
Pull Requests Open Count15
Pull Requests Close Count106
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private