PHPackages                             dlepera88-jquery/jquery-mascara - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dlepera88-jquery/jquery-mascara

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dlepera88-jquery/jquery-mascara
===============================

1.0.2(7y ago)171[1 issues](https://github.com/dlepera88-jquery/jquery-mascara/issues)4MITJavaScript

Since Apr 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dlepera88-jquery/jquery-mascara)[ Packagist](https://packagist.org/packages/dlepera88-jquery/jquery-mascara)[ RSS](/packages/dlepera88-jquery-jquery-mascara/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (2)Used By (4)

Plugin jQuery Mascara
=====================

[](#plugin-jquery-mascara)

Esse plugin aplica uma máscara ao campo / controle ao qual é referenciado. Além da máscara, também controla o conteúdo digitado.

Pré-requisitos
==============

[](#pré-requisitos)

Esse plugin necessita do jQuery ().

Desenvolvedor
-------------

[](#desenvolvedor)

Diego Lepera

Opções
------

[](#opções)

### placeholder

[](#placeholder)

boolean default true

Quando definido como **true**, o plugin gera um placeholder demonstrativo da máscara, substituíndo os caracteres editáveis por underlines.

Ex:

```
$('#celular-9').mascara('(00) 9 0000-0000', {placeholder: true});
Placeholder: (_\_) 9 \_\_\_\_-\_\_\_\_

```

### limitar

[](#limitar)

boolean default true

Quando definido como **true**, o plugin bloqueia a digitação no campo ao atingir o limite máximo da máscara. Quando **false**, permite que a digitação continue.

Ex:

Valor digitado no campo: 3001198800

```
$('#data').mascara('00/00/0000', {limitar: true});
Valor do campo: 30/01/1988

```

```
$('#data').mascara('00/00/0000', {limitar: false});
Valor do campo: 30/01/198800

```

Exemplos
--------

[](#exemplos)

### Telefone com DDD e 8 dígitos

[](#telefone-com-ddd-e-8-dígitos)

```
$('#telefone').mascara('(00) 0000-0000');

```

### CNPJ

[](#cnpj)

```
$('#cnpj').mascara('00.000.000/0000-00');

```

### CPF

[](#cpf)

```
$('#cpf').mascara('000.000.000-00');

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1afa4658a3cc99dea3df71b451a3c2a5f7b33f2ef261516a566987b4fff885cb?d=identicon)[dlepera88](/maintainers/dlepera88)

---

Top Contributors

[![dlepera](https://avatars.githubusercontent.com/u/6875116?v=4)](https://github.com/dlepera "dlepera (11 commits)")

---

Tags

jqueryjquery-plugin

### Embed Badge

![Health badge](/badges/dlepera88-jquery-jquery-mascara/health.svg)

```
[![Health](https://phpackages.com/badges/dlepera88-jquery-jquery-mascara/health.svg)](https://phpackages.com/packages/dlepera88-jquery-jquery-mascara)
```

###  Alternatives

[eternicode/bootstrap-datepicker

A datepicker for Bootstrap

12.7k552.0k6](/packages/eternicode-bootstrap-datepicker)[vakata/jstree

jsTree is jquery plugin, that provides interactive trees.

5.2k1.8M11](/packages/vakata-jstree)[eonasdan/bootstrap-datetimepicker

Date/time picker widget based on twitter bootstrap

7.2k500.2k9](/packages/eonasdan-bootstrap-datetimepicker)[nicolaskruchten/pivottable

Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.

4.4k223.4k1](/packages/nicolaskruchten-pivottable)[mottie/tablesorter

tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.

2.6k234.4k](/packages/mottie-tablesorter)[components/jqueryui

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.

1775.9M61](/packages/components-jqueryui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
