Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/felpsalvs/dom-manipulation


https://github.com/felpsalvs/dom-manipulation

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

Credit Card Masking Example Application


This is an example application demonstrating the use of masks for credit card fields such as card number, expiration date, and security code.


Technologies   |   
Project   |   
Layout   |   
License


License


## 🚀 Technologies

This project was developed with the following technologies:

- HTML and CSS
- JavaScript and JSON
- [Node and NPM](https://nodejs.org/)
- [Vite](https://vitejs.dev/)
- [iMask](https://imask.js.org)

## 💻 Project

Card Number Mask: When entering the card number, it is automatically formatted as "0000 0000 0000 0000" and recognizes Visa and Mastercard types based on the first digits.
Expiration Date Mask: When entering the expiration date, it is formatted as "MM/YY" and validates the year for the next 10 years.
Security Code Mask: The security code is formatted as "0000".

## 🔖 Usage

1. Open the index.html file in your web browser.
2. Enter the card number, expiration date, and security code in the corresponding fields.
3. Observe how the masks automatically format the fields.

## :memo: Contribution

Contributions are welcome! Feel free to open issues and pull requests for improvements.

- Fork the project
- Create a branch with your feature (git checkout -b feature/MyFeature)
- Commit your changes (git commit -m 'Add MyFeature')
- Push to the branch (git push origin feature/MyFeature)
- Open a Pull Request