tranquil-breeze-validator
is a comprehensive data validation library leveraging the strengths of joi
, validator
,
and isemail
to provide a robust validation toolkit for your JavaScript applications. Whether you're validating email
addresses, passwords, or usernames, tranquil-breeze-validator
offers an intuitive and easy-to-use interface for your
validation needs.
- Email validation using
isemail
- Password validation with customizable rules using
joi
- Username validation to ensure alphanumeric characters with
validator
To use tranquil-breeze-validator
in your project, run:
npm install tranquil-breeze-validator
const { validateEmail } = require('tranquil-breeze-validator');
console.log(validateEmail('example@example.com')); // true or false
const { validatePassword } = require('tranquil-breeze-validator');
console.log(validatePassword('yourSecurePassword123')); // Result object from Joi
const { validateUsername } = require('tranquil-breeze-validator');
console.log(validateUsername('user123')); // true or false
Contributions are welcome! Please feel free to submit a pull request or create an issue if you have suggestions or find a bug.
This project is licensed under the MIT License - see the LICENSE.md file for details.