Format

String Format Validation

Overview

The Format module contains functions to validate various string formats referenced in the Defined Formats 7.3 section of Json Schema specification.

The Format module is provided via optional import.

import Format from 'typebox/format'

Example

The following validates an email address.

const isEmail = Format.IsEmail('user@domain.com')