# jquery-mask-as-number

> Simple mask function that ensures valid integer numbers in text inputs.

Latest version **1.5.0** (published 2017-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install jquery-mask-as-number
pnpm add jquery-mask-as-number
yarn add jquery-mask-as-number
bun add jquery-mask-as-number
```

## 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.5.0 |
| Published | 2017-12-12 |
| First published | 2017-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | André Augusto Tissot |
| Maintainers | andretissot |
| Keywords | jquery, plugin, input, mask, number, integer, ecosystem:web, javascript |

## Links

- npm: https://www.npmjs.com/package/jquery-mask-as-number
- Repository: https://github.com/andrehtissot/jquery-mask-as-number
- Homepage: https://github.com/andrehtissot/jquery-mask-as-number/blob/master/README.md
- Issues: https://github.com/andrehtissot/jquery-mask-as-number/issues
- npm.io page: https://npm.io/package/jquery-mask-as-number

## 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.5.0 (latest) — 2017-12-12

## README

# jquery-mask-as-number
Simple mask jquery extension that ensures valid integer numbers in text inputs

Demo: https://jsfiddle.net/andretissot/9prtpcd5/

HTML5 number field only highlites invalid entry, but doesn't enforce the valid:

- On Chrome 55:<br />
![Inserting invalid numbers in chrome number fields](https://user-images.githubusercontent.com/1174345/33887303-a3d8fa4e-df49-11e7-92c7-88a2268b52f9.png)

- On Firefox 50:<br />
![Inserting invalid numbers in firefox number fields](https://user-images.githubusercontent.com/1174345/33887300-a01ead9a-df49-11e7-996a-c96d92b50342.png)

This jquery extension forces the input to only allow integer values, and minus if first character.

The input value is not limited by the Browser's maximum integer.

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