Cleave.js
JavaScript library that formats the text a user types into an input field, such as card numbers, phone numbers and dates.
nosir.github.io/cleave.js/repositorydocs
Cleave.js formats the text a user types into an input element while they type. It has presets for credit card numbers, phone numbers, dates, times and numerals, and options for custom delimiters, prefixes and block patterns. The main file is added with a script tag or imported as a CommonJS, AMD or ES module. Phone formatting also needs a country addon loaded beside the main file. The package includes ReactJS and AngularJS integrations, and its documentation covers the JavaScript API, options and public methods.
Worth knowing
The README opens with a deprecation notice. It says the library has been deprecated and points to a newer project, cleave-zen, for anyone who still wants to use it. The repository is not archived, so the status rests on that notice.
Identity
- Status
- Discontinued1
- Maintainer
- Max Huang2
- Maintained by
- Individual2
- First release
- 20164
Rendering and deploy
- Install with
- CDN (jsDelivr, cdnjs)1
Releases
Adoption
Sources
- 2026-11-04: Status, links, Install with, License, License model
github.com/nosir/cleave.js/blob/master/README.md - 2026-11-04: links, Maintainer, Maintained by
nosir.github.io/cleave.js/ - 2026-11-04: links, Written in, GitHub stars
api.github.com/repos/nosir/cleave.js - 2026-11-04: First release
api.github.com/repos/nosir/cleave.js/releases - 2026-11-04: Current major version, Last release
api.github.com/repos/nosir/cleave.js/releases/latest - 2026-11-04: npm downloads a week
api.npmjs.org/downloads/range/2026-10-26:2026-11-01/cleave.js - 2026-11-04: Contributors
api.github.com/repos/nosir/cleave.js/contributors - 2026-11-04: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cleave.js