ipull
Version:
The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.
12 lines • 334 B
JavaScript
import { parse } from "@tinyhttp/content-disposition";
export function parseContentDisposition(header) {
if (!header) {
return undefined;
}
try {
return String(parse(header).parameters.filename || "") || undefined;
}
catch { }
return undefined;
}
//# sourceMappingURL=content-disposition.js.map