Imaskjs
vanilla javascript input mask
BuildlessStable1 dependencyESM + script tagTypes bundledMIT
Facts
| Size | 57.9 KB minified, 15.5 KB gzipped (dist/imask.js) |
|---|---|
| Licence | MIT |
| Dependencies | @babel/runtime-corejs3@^7.24.4 |
| Last release | v7.6.1, May 2024 |
| Last activity | 2024-10-11 (Stable) |
| Stars | 5,183 on GitHub |
| Formats | ES module; classic script (global IMask); TypeScript types in the package |
| CDN hits | 19.8 million a month on jsDelivr |
| npm downloads | 6.4 million a month |
| Gates | G1 failed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v7.6.1 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/imask.js"
integrity="sha384-MfCuG63MU1ZAcTsOI5gjgTtPliw8TUi5OltJrtmhBdu6RKig+1YIuyTsS3k8TRzE" crossorigin="anonymous"></script>import IMask from "https://cdn.jsdelivr.net/npm/[email protected]/esm/index.js";Advertisement
Related libraries
- DragSelect An easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop. – Examples:
- Croppr.js A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
- PulltoRefresh.js A quick and powerful plugin for your pull-to-refresh needs in your webapp.
Entry 143 in the directory. Facts refreshed monthly; last run 2026-10-30.