Skip to content

basalt / files/src / normalizeContentType

Function: normalizeContentType() ​

> normalizeContentType(contentType): string

Defined in: files/src/sniff.ts:203

The bare, lowercase, canonical form of a content type (Image/JPG; q=1 → image/jpeg).

Parameters ​

contentType ​

string

Returns ​

string

Released under the MIT License.