plainJS

Libraries / Inputs

Imaskjs

vanilla javascript input mask

BuildlessStable1 dependencyESM + script tagTypes bundledMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size57.9 KB minified, 15.5 KB gzipped (dist/imask.js)
LicenceMIT
Dependencies@babel/runtime-corejs3@^7.24.4
Last releasev7.6.1, May 2024
Last activity2024-10-11 (Stable)
Stars5,183 on GitHub
FormatsES module; classic script (global IMask); TypeScript types in the package
CDN hits19.8 million a month on jsDelivr
npm downloads6.4 million a month
GatesG1 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.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/imask.js"
        integrity="sha384-MfCuG63MU1ZAcTsOI5gjgTtPliw8TUi5OltJrtmhBdu6RKig+1YIuyTsS3k8TRzE" crossorigin="anonymous"></script>
jsES module import
import IMask from "https://cdn.jsdelivr.net/npm/[email protected]/esm/index.js";
Advertisement

Entry 143 in the directory. Facts refreshed monthly; last run 2026-10-30.