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. dlepera88-jquery/jquery-mascara

ActiveLibrary

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

1.0.2(6y ago)140↓100%[1 issues](https://github.com/dlepera88-jquery/jquery-mascara/issues)MITJavaScript

Since Apr 20Pushed 6y 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 (0)

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

22

—

LowBetter than 24% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

2529d 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

[fullcalendar/fullcalendar

Full-sized drag &amp; drop event calendar

20.4k372.7k4](/packages/fullcalendar-fullcalendar)[eternicode/bootstrap-datepicker

A datepicker for Bootstrap

12.7k541.8k5](/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.2k490.5k8](/packages/eonasdan-bootstrap-datetimepicker)[jquery-form/form

The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX.

5.2k233.5k6](/packages/jquery-form-form)[nicolaskruchten/pivottable

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

4.4k197.5k1](/packages/nicolaskruchten-pivottable)

PHPackages © 2026

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