Coder Social home page Coder Social logo

dsc-muet-szab-khairpur-mir-s / dart-email-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mhassanbughio/dart-email-validator

3.0 3.0 1.0 4 KB

A simple (but correct) Dart class for validating email addresses without using RegEx. Can also be used to validate emails within Flutter apps (see Flutter email validation). 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: '^1.0.6' 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 = "[email protected]"; assert(EmailValidator.validate(email)); } Tips You can also use this repo as a template for creating Dart packages, just clone the repo and start hacking :)

License: MIT License

JavaScript 100.00%

dart-email-validator's People

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.