data-validators-js
v1.1.2
Published
A versatile data validation library
Downloads
7
Maintainers
Readme
data-validators-js
Data Validators for JavaScript
The data-validators-js
package provides a comprehensive set of data validators for JavaScript, empowering developers to easily implement robust data validation in their applications. Whether you're validating user inputs, API payloads, or any other form of data, this package simplifies the process and ensures data integrity.
Features
- Versatile Validators: A wide range of validators for common data types such as strings, numbers, arrays, and more.
- Custom Validation Rules: Easily define and apply custom validation rules tailored to your specific use cases.
- Chaining Validators: Combine multiple validators to create complex validation scenarios with a clear and concise syntax.
- Error Handling: Detailed error messages help identify validation failures and facilitate debugging.
Installation
npm install data-validators-js
Usage
const { inputValidators } = require("data-validators-js");
console.log(inputValidators.isValidateEmail('[email protected]'))
console.log(inputValidators.isValidNumber("23d"));