UNPKG

hd-utils

Version:

A handy utils for modern JS developers

8 lines (7 loc) 385 B
/** * @description Extracts the boundary string (including the leading '------') from a multipart/form-data text. * * @param {string} dataText - The multipart/form-data text from which to extract the boundary. * @returns {string | null} - The extracted boundary string, or null if no boundary is found. */ export default function extractBoundary(dataText: string): string | null;