FindSoftware

Cleave.js

JavaScript library that formats the text a user types into an input field, such as card numbers, phone numbers and dates.

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

Current major version
15
Last release
2020-05-195

Adoption

GitHub stars
17,8403
npm downloads a week
474,0906
Contributors
667
Dependent repositories
2,4588
Dependent packages
3208

Why these figures do not compare

Sources

  1. 2026-11-04: Status, links, Install with, License, License model
    github.com/nosir/cleave.js/blob/master/README.md
  2. 2026-11-04: links, Maintainer, Maintained by
    nosir.github.io/cleave.js/
  3. 2026-11-04: links, Written in, GitHub stars
    api.github.com/repos/nosir/cleave.js
  4. 2026-11-04: First release
    api.github.com/repos/nosir/cleave.js/releases
  5. 2026-11-04: Current major version, Last release
    api.github.com/repos/nosir/cleave.js/releases/latest
  6. 2026-11-04: npm downloads a week
    api.npmjs.org/downloads/range/2026-10-26:2026-11-01/cleave.js
  7. 2026-11-04: Contributors
    api.github.com/repos/nosir/cleave.js/contributors
  8. 2026-11-04: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cleave.js

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON