Skip to content

PolymathWhiz/autoratify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoratify

A zero dependency javascript validation library.

Usage

const validate = require('autoratify');

console.log(validate.validateEmail('hello@example.com')); // true

Avaliable helper methods

  1. validatePhoneNumber(phoneNumber, length) - This validates if a phone number matches a length without the international code

  2. validateEmail(email) - This validates a for a valid email and returns false if the email passed is invalid.

  3. validatePassword(password, length) - This validates if a password matches the required length.

  4. validateLength(text, length) - This validates a text specified with the length needed.

Contributions

To contribute, create a pull request or file an issue and it will be reviewed as soon as possible.

Copyright

© 2019, Miracle Anyanwu

About

A zero dependency javascript validator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published