# ng-only-digit-mask

Latest version **0.0.8** (published 2020-03-13) · 0 weekly downloads

## Install

```sh
npm install ng-only-digit-mask
pnpm add ng-only-digit-mask
yarn add ng-only-digit-mask
bun add ng-only-digit-mask
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2020-03-13 |
| First published | 2019-12-10 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 135.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | uniquevitgen |
| Keywords | angular, angular2, angular4, directive, mask, phone, number, ng-model, form-control |

## Links

- npm: https://www.npmjs.com/package/ng-only-digit-mask
- npm.io page: https://npm.io/package/ng-only-digit-mask

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.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

- 0.0.8 (latest) — 2020-03-13
- 0.0.7 — 2020-03-13
- 0.0.6 — 2019-12-11
- 0.0.5 — 2019-12-11
- 0.0.4 — 2019-12-11
- 0.0.3 — 2019-12-11
- 0.0.2 — 2019-12-11
- 0.0.1 — 2019-12-10

## README

# NgOnlyDigitDirective


## Installation

To install this library, run: 
``` 
$ npm install ng-only-digit-mask --save
```

## Consuming your library

Once you have installed it you can import `NgOnlyDigitMaskModule` from `ng-only-digit-mask` in any application module. E.g.
```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
 
import { AppComponent } from './app.component';
 
// Import your library
import { NgOnlyDigitMaskModule } from 'ng-only-digit-mask';
 
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
 
    // NgOnlyDigitMaskModule module
    NgOnlyDigitMaskModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

Once it is imported, you can use attribute ngNgOnlyDigitMask:
```html
<input ngNgOnlyDigitMask [kmAllowDigitsOnly]="true">
```

#### Attributes/Options:

```
   kmAllowDigitsOnly: Indicates whether it's allow only digits or not
   kmAllowFloat: Indicates whether it's allow float numbers or not
   kmAllowPlus: Indicates whether it's allow start with '+' or not
```

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