validation

Validation functions for Deno 🦕

Validations

Email

Validates an email according to RFC5322 (or as close as possible).

import { email } from "https://deno.land/x/validation/email.ts";

if (email('test@example.com')) {
    console.log('valid')
}