# Cleave.js

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


Source: https://findsoftware.frbit.cloud/cleave-js/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- home: https://nosir.github.io/cleave.js/
- repository: https://github.com/nosir/cleave.js
- docs: https://github.com/nosir/cleave.js/blob/master/doc/js-api.md

### Identity

- status: discontinued
- maintainer: Max Huang
- maintainerType: individual
- parent: unknown
- firstRelease: 2016
- hqCountry: unknown

### Kind

- category: forms
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: CDN (jsDelivr, cdnjs)

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 1
- latestReleaseDate: 2020-05-19

### Adoption

- githubStargazers: 17840
- packagistDownloads: not applicable
- npmWeeklyDownloads: 474090
- contributors: 66
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2458
- dependentPackages: 320

### Sources

- status: https://github.com/nosir/cleave.js/blob/master/README.md (read 2026-11-04)
- urls: https://nosir.github.io/cleave.js/ (read 2026-11-04)
- urls: https://api.github.com/repos/nosir/cleave.js (read 2026-11-04)
- urls: https://github.com/nosir/cleave.js/blob/master/README.md (read 2026-11-04)
- maintainer: https://nosir.github.io/cleave.js/ (read 2026-11-04)
- maintainerType: https://nosir.github.io/cleave.js/ (read 2026-11-04)
- language: https://api.github.com/repos/nosir/cleave.js (read 2026-11-04)
- firstRelease: https://api.github.com/repos/nosir/cleave.js/releases (read 2026-11-04)
- installMethod: https://github.com/nosir/cleave.js/blob/master/README.md (read 2026-11-04)
- installMethod: https://github.com/nosir/cleave.js/blob/master/README.md (read 2026-11-04)
- license: https://github.com/nosir/cleave.js/blob/master/README.md (read 2026-11-04)
- licenseModel: https://github.com/nosir/cleave.js/blob/master/README.md (read 2026-11-04)
- currentMajor: https://api.github.com/repos/nosir/cleave.js/releases/latest (read 2026-11-04)
- latestReleaseDate: https://api.github.com/repos/nosir/cleave.js/releases/latest (read 2026-11-04)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-10-26:2026-11-01/cleave.js (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/nosir/cleave.js (read 2026-11-04)
- contributors: https://api.github.com/repos/nosir/cleave.js/contributors (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cleave.js (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cleave.js (read 2026-11-04)

## Notes

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](https://github.com/nosir/cleave.js/blob/master/README.md) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
