Inputmask
JavaScript library that applies an input mask to a form field, so the text a user types follows a predefined format such as a date, a number or a phone number.
robinherbots.github.io/Inputmask/repositorydocs
Inputmask applies an input mask to a form field: a predefined format that the text a user types must follow, such as a date, a number or a phone number. It can run in memory without a DOM element, for example for use in Node.js, and it supports the dir=“rtl” attribute for right-to-left input.
The core package is framework-agnostic and runs against vanilla JavaScript, jQuery and jqlite. First-party packages wrap it for React, Vue, Svelte, Angular and jQuery.
Worth knowing
The README asks anyone using Inputmask in a commercial setting to make a small donation, and says the license stays permissive.
Identity
- Status
- Active
- Maintainer
- Robin Herbots1
- Maintained by
- Individual1
- First release
- 20127
Rendering and deploy
- Install with
- script tag with the dist folder files, npm install inputmask, for module bundlers, npm install of a framework wrapper with inputmask (React, Vue, Svelte, Angular, jQuery), jQuery plugin file jquery.inputmask.umd.js for script tags3
Releases
Adoption
Sources
- 2026-11-16: links, Maintainer, Maintained by, Categories, License, License model
github.com/RobinHerbots/Inputmask/blob/5.x/README.md - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/RobinHerbots/Inputmask - 2026-11-16: Runtime, Install with
github.com/RobinHerbots/Inputmask/blob/5.x/inputmask-pages/src/assets/Documentation.md - 2026-11-16: Multilingual
github.com/RobinHerbots/Inputmask/blob/5.x/inputmask-pages/src/assets/Introduction.md - 2026-11-16: Current major version
registry.npmjs.org/inputmask/latest - 2026-11-16: Last release
registry.npmjs.org/inputmask - 2026-11-16: First release
api.github.com/repos/RobinHerbots/Inputmask/commits/8fe24babc6ecf31024d0a1377d0523968df677fe - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/inputmask - 2026-11-16: Contributors
api.github.com/repos/RobinHerbots/Inputmask/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/inputmask