college-form-validator
v1.0.7
Published
Ensure secure and effective form submission with this comprehensive form validation library. Simplifying the validation process for common fields like passwords, emails and text areas.
Downloads
23
Maintainers
Readme
college-form-validator
A library to validate forms with precision and security. This library specializes in seamless checks for common fields - email
, password
, and text areas
.
Features
- Emails: Exclusive to "mohawkcollege.ca" domains for a targeted user base.
- Passwords: Robust security—8 characters, special characters, numbers. Unique: User's first name is restricted.
- Text Areas: Set maximum length characters as per your needs for validation.
Enhance user experience with thorough and effective form validation.
Installation
You can install this package using npm:
npm install college-form-validator
Usage
- How to use First include the library in your HTML file
<!-- Yout HTML File -->
<script src="node_modules/college-form-validator/index.js"></script>
2. Set Up Form
You can access the example files in the installed package directory.
Once the installation is complete, navigate to the installed package directory:
- cd node_modules/form-validation-library
- You will find the following files
- `example.css`: Example CSS styles for the form
- `example.html`: Example HTML form with the applied styles and form validation
- Open the `example.html` file in a web browser to see the example form and how the validation library is integrated
3. Customize for your needs:
Modify the example files according to your form requirements. Integrate the library by including the JavaScript file in your HTML.
4. Implement in your project
Copy the customized files into your project directory and integrate them into your web application.
## License
This project is licensed under the [ISC License](LICENSE)
## Contact
For questions or feedback, you can reach me at [[email protected]](mailto:[email protected])