plainJS

Libraries / UI

Cleave.js

Format input text content when you are typing...

No-build verifiedStable0 dependenciesESM + script tagApache-2.0

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size20.6 KB minified, 6.2 KB gzipped (dist/cleave.js)
LicenceApache-2.0
Dependenciesnone
Last releasev1.6.0, May 2020
Last activity2023-11-25 (Stable)
Stars17,845 on GitHub
FormatsES module; classic script (global Cleave)
CDN hits12.8 million a month on jsDelivr
npm downloads1.3 million a month
GatesG1 passed (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 v1.6.0 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/cleave.js"
        integrity="sha384-Nq5pI6+i/yBQfq8JusOdt4oMQ6EncGeoJXatCkB00+vx0NQeg3Od4+/OqiBOuXaA" crossorigin="anonymous"></script>
jsES module import
import Cleave from "https://cdn.jsdelivr.net/npm/[email protected]/dist/cleave-esm.js";
Advertisement

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