UNPKG

@visulima/email

Version:

A comprehensive email library with multi-provider support, crypto utilities, and template engines

15 lines (14 loc) 630 B
/** * Sanitizes header values to prevent CRLF injection attacks. * Removes carriage return (\r) and line feed (\n) characters. * @param value The header value to sanitize. * @returns The sanitized header value with CR/LF characters removed. */ export declare const sanitizeHeaderValue: (value: string) => string; /** * Sanitizes header names to prevent CRLF injection attacks. * Removes carriage return (\r) and line feed (\n) characters. * @param name The header name to sanitize. * @returns The sanitized header name with CR/LF characters removed. */ export declare const sanitizeHeaderName: (name: string) => string;