UNPKG

stringzy

Version:

A versatile string manipulation library providing a range of text utilities for JavaScript and Node.js applications.

14 lines (13 loc) 459 B
/** * Checks if a given string is a valid email address. * * Uses a regular expression to verify the format: it must contain * one "@" symbol, no spaces, and at least one dot after the "@" * (e.g., "example@domain.com"). * * @param {string} str - The string to be checked. * @returns {boolean} True if the string is a valid email address, false otherwise. */ export declare function isEmail(str: string, opts?: { smtpUTF8?: boolean; }): boolean;