email-syntax-validator

A simple and fast NPM module to validate an e-mail address.

Usage no npm install needed!

<script type="module">
  import emailSyntaxValidator from 'https://cdn.skypack.dev/email-syntax-validator';
</script>

README

email-syntax-validator

A simple and fast NPM module to validate an e-mail address.

Installation

Install via NPM:

npm install email-syntax-validator

Install via YARN:

yarn add email-syntax-validator

Usage

JavaScript


var validator = require("email-syntax-validator");

validator.validate("test@email.com"); // true

TypeScript


import * as EmailValidator from 'email-syntax-validator';

EmailValidator.validate("test@email.com"); // true


Contributing

  1. Fork this repository;
  2. Create your feature branch: git checkout -b new-feature;
  3. Commit your changes: git commit -m 'feat: add some feature';
  4. Push to the branch: git push origin new-feature.

After your pull request is merged, you can safely delete your branch.

License

This project is licensed under the MIT License - see the LICENSE file for details.


:heavy_check_mark: Made by vilmacio22