Package Exports
- fabform-email-validator
- fabform-email-validator/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fabform-email-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fabform-email-validator
A lightweight, reliable email validation utility powered by FabForm.
Validate emails with a robust regex and simple extra checks to catch common invalid formats — perfect for client- or server-side validation.
Features
- Simple function to validate emails with high accuracy
- Covers most valid email formats without allowing common invalid cases
- Lightweight: zero dependencies, tiny footprint
- Easy to integrate in any Node.js or frontend project
Installation
npm install fabform-email-validatorUsage
const validateEmail = require('fabform-email-validator');
console.log(validateEmail('user@example.com')); // true
console.log(validateEmail('invalid-email@.com')); // falseAPI
validateEmail(email: string): boolean
Returns true if the email is valid, otherwise false.
Sponsorship
This package is proudly sponsored by FabForm — the easiest way to build and deploy powerful forms without code.
Check out FabForm for form building, validation, and automation that scales with your needs.
Contributing
Contributions and issues are welcome! Please submit pull requests or open issues on GitHub.
License
MIT © FabForm
---