# ngx-phone-mask-br

> Angular directive for autoformatting brazilian phone numbers.

Latest version **1.0.3** (published 2018-03-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install ngx-phone-mask-br
pnpm add ngx-phone-mask-br
yarn add ngx-phone-mask-br
bun add ngx-phone-mask-br
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-03-27 |
| First published | 2018-03-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 65.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Urbano |
| Maintainers | tiago.urbano |
| Keywords | angular, angular2, angular4, directive, mask, phone, number, ng-model, form-control, masking, brazilian, brazilian phone number |

## Links

- npm: https://www.npmjs.com/package/ngx-phone-mask-br
- Repository: https://github.com/tiagourbano/ngx-phone-mask-br
- Homepage: https://github.com/tiagourbano/ngx-phone-mask-br#readme
- Issues: https://github.com/tiagourbano/ngx-phone-mask-br/issues
- npm.io page: https://npm.io/package/ngx-phone-mask-br

## Dependencies (9)

- [rxjs](https://npm.io/package/rxjs.md) ^5.1.0
- [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) >=4.0.0
- [@angular/forms](https://npm.io/package/@angular/forms.md) >=4.0.0
- [@angular/common](https://npm.io/package/@angular/common.md) >=4.0.0
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) >=4.0.0
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) >=4.0.0
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) >=4.0.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-03-27
- 1.0.2 — 2018-03-27
- 1.0.1 — 2018-03-27
- 1.0.0 — 2018-03-27

## README

# NgxPhoneMaskBr

Angular directive for autoformatting brazilian phone numbers.

## Usage
Install via npm:
```shell
npm install ngx-phone-mask-br
```

Import in your `app.module.ts`:
```ts
import { NgxPhoneMaskBrModule } from 'ngx-phone-mask-br';

@NgModule({
  imports: [
    NgxPhoneMaskBrModule
  ]
})
```

Use it:
```html
<input ngxPhoneMaskBr [(ngModel)]='yourModelName'>
or
<input ngxPhoneMaskBr [formControl]='yourControl'>
or
<input ngxPhoneMaskBr formControlName='yourControlName'>
```

## Contribution
This component is under development. Pull requests and issues (PR's better) are welcome.

To publish:
```
git commit
npm version patch
npm run build
npm publish dist
```

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