Skip to content

Prakashchandra-007/data-validators-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Validators for JavaScript (data-validators-js)

Overview

data-validators-js is an open-source package that provides a comprehensive set of data validators for JavaScript. It simplifies data validation, ensuring data integrity in applications by offering robust, flexible, and customizable validation functions.

Features

  • Versatile Validators: Supports common data types such as strings, numbers, arrays, and more.
  • Custom Validation Rules: Easily define and apply validation rules tailored to your needs.
  • Chaining Validators: Combine multiple validators for complex validation scenarios.
  • Error Handling: Provides detailed error messages for easier debugging.

Installation

Install the package using npm:

npm install data-validators-js

Usage

Import the package and use its validators:

const { inputValidators } = require("data-validators-js");

console.log(inputValidators.isValidateEmail("abs@gmail.com")); // true
console.log(inputValidators.isValidNumber("23d")); // false

Contribution

We welcome contributions! If you'd like to improve this package, follow these steps:

  1. Fork the repository on GitHub.
  2. Clone your fork:
    git clone https://github.com/your-username/data-validators-js.git
  3. Create a new branch:
    git checkout -b feature-new-validator
  4. Make your changes and commit:
    git commit -m "Added new validator for XYZ"
  5. Push to your branch:
    git push origin feature-new-validator
  6. Create a Pull Request on GitHub.

Issues & Support

If you encounter any issues, feel free to open an issue on GitHub. We appreciate feedback and suggestions for improvements.

License

This project is licensed under the MIT License.

Happy coding! 🚀

About

data-validators-js: Versatile JavaScript data validators for robust input validation. Simplify data integrity in your applications with this comprehensive toolkit. [Install npm package](npm install data-validators-js)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors