Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 627 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 627 Bytes

MaskerJS

Vanilla Javascript mask plugin to input form elements.

Super lightweight plugin for masking input form elements (<6kB minified).

It currently supports the following mask types:

  • Brazilian CPF
  • Brazilian CNPJ
  • Brazilian CEP (zip code)
  • Phone numbers (with area code and 8 or 9 digits of number)
  • Date
  • Time
  • Datetime
  • Month/Year
  • Year/Month
  • Monetary (current Cultures: en-US and pt-BR)
  • CreditCard (VISA, Mastercard, AMEX, Diners, Discover, Hipercard and Aura)
  • Number (pure)
  • Float
  • Percent

Roadmap

Add support to custom mask.

Usage

Se playground.html file included.