email_validator 0.1.4 copy "email_validator: ^0.1.4" to clipboard
email_validator: ^0.1.4 copied to clipboard

outdated

A simple (but correct) dart class for validating email addresses

Email validator Build status #

A simple (but correct) Dart class for validating email addresses. This is a port from the C# library jstedfast/EmailValidation.

Installation #

Dart requires the latest version of Dart. You can download the latest and greatest here.

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
    email_validator: "0.1.0"

2. Install it

You can install packages from the command line:

$ pub get
..

Alternatively, your editor might support pub. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:email_validator/email_validator.dart';

Usage #

Read the unit tests under test, or see code example below:

void main() {

    var email = "fredrik@gmail.com";

    assert(EmailValidator.validate(email) == true);

}

Tests #

To test the package, run:

$ ./tool/run_tests.sh
...
990
likes
0
pub points
99%
popularity

Publisher

unverified uploader

A simple (but correct) dart class for validating email addresses

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on email_validator