Skip to content

basalt / files/src / ContentSniffer

Type Alias: ContentSniffer ​

> ContentSniffer = (bytes) => string | null

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

A content detector: the real MIME type of bytes (the file's head), or null when unknown.

Parameters ​

bytes ​

Uint8Array

Returns ​

string | null

Released under the MIT License.