Skip to content

mossiney/tranquil-breeze-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tranquil-breeze-validator

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.

Features

  • Email validation using isemail
  • Password validation with customizable rules using joi
  • Username validation to ensure alphanumeric characters with validator

Installation

To use tranquil-breeze-validator in your project, run:

npm install tranquil-breeze-validator

Usage

Validate Email

const { validateEmail } = require('tranquil-breeze-validator');

console.log(validateEmail('example@example.com')); // true or false

Validate Password

const { validatePassword } = require('tranquil-breeze-validator');

console.log(validatePassword('yourSecurePassword123')); // Result object from Joi

Validate Username

const { validateUsername } = require('tranquil-breeze-validator');

console.log(validateUsername('user123')); // true or false

Contributions

Contributions are welcome! Please feel free to submit a pull request or create an issue if you have suggestions or find a bug.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A validator library powered by joi, validator, and isemail.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published