JSPM

fabform-email-validator

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q18279F
  • License MIT

A lightweight, reliable email validation utility by FabForm — perfect for validating user emails with a solid regex and extra checks.

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

npm version License: MIT

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-validator

Usage

const validateEmail = require('fabform-email-validator');

console.log(validateEmail('user@example.com')); // true
console.log(validateEmail('invalid-email@.com')); // false

API

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


---