typed-email

A simple typed add-on for checking and normalizing email addresses

Usage no npm install needed!

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

README

typed-email

A simple typed add-on for checking and normalizing email addresses.

Installation

npm install typed-email

Usage

import * as T from "typed";
import { email } from "typed-email";

const userType = T.object({
  email, // will trim, lowercase and validate email
  password: T.string,
});