UNPKG

@synotech/utils

Version:

a collection of utilities for internal use

12 lines (11 loc) 375 B
/** * This function extracts an email address from a string * @module emailGetFromString * @param {string} text - a string containing an email address * @return {string} {String} an email address * @example * * emailGetFromString('This is my email address: john@example.com') * */ export declare function emailGetFromString(text: string): string | null;