A zero dependency javascript validation library.
const validate = require('autoratify');
console.log(validate.validateEmail('hello@example.com')); // true
-
validatePhoneNumber(phoneNumber, length)
- This validates if a phone number matches a length without the international code -
validateEmail(email)
- This validates a for a valid email and returns false if the email passed is invalid. -
validatePassword(password, length)
- This validates if a password matches the required length. -
validateLength(text, length)
- This validates a text specified with the length needed.
To contribute, create a pull request or file an issue and it will be reviewed as soon as possible.
© 2019, Miracle Anyanwu