# telefone-mask-ng2

> Máscara de telefone com suporte ao nono dígito.

Latest version **1.0.7** (published 2018-05-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install telefone-mask-ng2
pnpm add telefone-mask-ng2
yarn add telefone-mask-ng2
bun add telefone-mask-ng2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-05-07 |
| First published | 2017-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 (+19 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Charles Assunção |
| Maintainers | assuncaocharles |
| Keywords | mascara, telefone, phone, angular 2, ng2, nono dígito, mask |

## Links

- npm: https://www.npmjs.com/package/telefone-mask-ng2
- Repository: https://github.com/assuncaocharles/telefone-mask-ng2
- Homepage: https://github.com/assuncaocharles/telefone-mask-ng2#readme
- Issues: https://github.com/assuncaocharles/telefone-mask-ng2/issues
- npm.io page: https://npm.io/package/telefone-mask-ng2

## Dependencies (8)

- [npm](https://npm.io/package/npm.md) ^5.8.0
- [rxjs](https://npm.io/package/rxjs.md) ^5.5.8
- [core-js](https://npm.io/package/core-js.md) ^2.4.1
- [zone.js](https://npm.io/package/zone.js.md) ^0.8.4
- [@angular/core](https://npm.io/package/@angular/core.md) ^5.2.0
- [vanilla-masker](https://npm.io/package/vanilla-masker.md) ^1.1.1
- [@angular/common](https://npm.io/package/@angular/common.md) ^5.2.9
- [@types/source-map](https://npm.io/package/@types/source-map.md) ^0.5.0

## Recent versions

- 1.0.7 (latest) — 2018-05-07
- 1.0.6 — 2018-05-07
- 1.0.5 — 2017-05-30
- 1.0.4 — 2017-05-30
- 1.0.3 — 2017-05-30
- 1.0.2 — 2017-05-29
- 1.0.1 — 2017-05-29
- 1.0.0 — 2017-05-29

## README

# Sobre

Uma simples diretiva que se adapta à telefones com ou sem o nono dígito.

## Comportamento

**_ Número com o nono dígito _**

```
(99) 9 9999-9999
```

**_ Número sem o nono dígito _**

```
(99) 9999-9999
```

## Uso

Importe a diretiva dentro do módulo que deseja fazer uso:

```
import { TelefoneMask } from 'telefone-mask-ng2';
```

E faça a sua declaração dentro do módulo:

```
declarations: [
    ...
    TelefoneMask
    ...
  ],
```

Obs: Caso seja um modulo global ou reutilizável não esqueça também de fazer adicionar no array de exports.

Para usar a diretiva basta atribui-la em um input

```
<input TelefoneMask [(ngModel)]="User.Celular" type="text" />
```

---
_Source: https://npm.io/package/telefone-mask-ng2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
