0.0.8 • Published 2 years ago
validator-pro v0.0.8
Validator PRO
Not just an another validator plugin, we've everything packed for you!
Features
✅ Wide-range of Regular Expressions ✅ Validate & Escape options
Usage
Typescript
import ValidatorPro from 'validator-pro';
const validator = new ValidatorPro();
const isValidEmail: boolean = validator.validate('EMAIL', 'example@example.com');
console.log('Is the email valid?', isValidEmail);
// Output : Is the email valid? trueJavascript
const ValidatorPro = require('validator-pro').default; // Use the ".default" property for default export
const validator = new ValidatorPro();
const isValidEmail = validator.validate('EMAIL', 'example@example.com');
console.log('Is the email valid?', isValidEmail);
// Output : Is the email valid? trueAPIs
Validate
Validate with a predefined option and get true or false
.validate(OPTION,INPUT)
Escape
Escape the specified option matched, from input
.escape(OPTION,INPUT)
Options Available
Contribute More
Easily contribute to our collection, by Opening an issue with RegEx to be added or update with file or data froma forked repo with a PR.