# ionic3-input-mask

> Input mask for ionic3 apps

Latest version **0.20.5** (published 2017-09-03) · CC0-1.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ionic3-input-mask
pnpm add ionic3-input-mask
yarn add ionic3-input-mask
bun add ionic3-input-mask
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.20.5 |
| Published | 2017-09-03 |
| First published | 2017-08-27 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+21 in 3 direct dependencies) |
| Install scripts | no |
| Author | M.K. Safi |
| Maintainers | rafaelnep |
| Keywords | ionic3, ionic3 component, ionic3 directive, text mask, input mask, string mask, input formatting, text formatting, string formatting |

## Links

- npm: https://www.npmjs.com/package/ionic3-input-mask
- Repository: https://github.com/text-mask/text-mask
- Homepage: https://github.com/text-mask/text-mask/tree/master/ionic3/#readme
- Issues: https://github.com/text-mask/text-mask/issues
- npm.io page: https://npm.io/package/ionic3-input-mask

## Dependencies (6)

- [rxjs](https://npm.io/package/rxjs.md) 5.0.0-beta.6
- [zone.js](https://npm.io/package/zone.js.md) 0.6.12
- [@angular/core](https://npm.io/package/@angular/core.md) 2.0.0-rc.4
- [@angular/forms](https://npm.io/package/@angular/forms.md) 0.2.0
- [@angular/common](https://npm.io/package/@angular/common.md) 2.0.0-rc.4
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) 2.0.0-rc.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.20.5 (latest) — 2017-09-03
- 0.20.4 — 2017-09-02
- 0.20.3 — 2017-09-02
- 0.20.2 — 2017-09-02
- 0.20.1 — 2017-09-02
- 0.19.6 — 2017-08-29
- 0.19.5 — 2017-08-29
- 0.19.4 — 2017-08-28
- 0.19.3 — 2017-08-27
- 0.19.2 — 2017-08-27
- 0.19.1 — 2017-08-27
- 0.19.0 — 2017-08-27

## README

# Ionic 3 Input Mask

## Getting started

First, install it.

```bash
npm i inoic3-input-mask --save
```

Then, require it and use it:

```typescript
import {Component} from '@angular/core';
import {Directive} from 'inoic3-text-mask'

@Component({
  selector: 'app',
  template: `
    <ion-input [textMask]="{mask: mask}" [(ngModel)]="myModel"/>
  `,
  directives: [Directive]
})
export class SomeComponent {
  public myModel = ''
  public mask = ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
}
```

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