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(7y ago)140↓100%[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 1mo ago

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 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

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

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

[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.2k492.4k9](/packages/eonasdan-bootstrap-datetimepicker)[jquery-form/form

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

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

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

4.4k202.9k1](/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.6k223.5k](/packages/mottie-tablesorter)[openmage/magento-lts

A fork of Magento-1 that is accepting bug fixes (backward compatible, drop in replacement for official Magento)

915231.1k19](/packages/openmage-magento-lts)

PHPackages © 2026

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