cleave.js: Detailed Overview & Metrics

v1.6.0(almost 4 years ago)

This package was last published over a year ago. It may not be actively maintained.Types definitions are provided via a separate npm package: @types/cleave.jsNumber of direct dependencies: 0Monthly npm downloads

Cleave.js is a lightweight JavaScript library for formatting input text as users type. It provides an easy way to enforce specific patterns or formats for input fields, such as phone numbers, credit card numbers, dates, and more. Cleave.js automatically formats the input value in real-time, making it user-friendly and reducing the need for manual formatting.

Compared to other similar libraries like Inputmask and AutoNumeric, Cleave.js stands out for its simplicity and flexibility. It has a small footprint and can be easily integrated into any web application. Cleave.js also supports custom formatting options and provides a smooth user experience with its intuitive input handling.

Cleave.js is actively maintained and regularly updated with new features and bug fixes. It has a growing community and good documentation, making it a reliable choice for handling input formatting in your projects.

Alternatives:
inputmask+
text-mask+
vanilla-text-mask+
imask+
react-input-mask+
react-text-mask+
vue-text-mask+
v-mask+
maska+
svelte-input-mask+

Tags: javascriptinputformattingvalidationuser-friendly