@woss/exiftool - v0.3.1
    Preparing search index...

    Interface FormatParser

    A format plugin: an adapter that recognises a container by magic bytes and parses it into a FileInfo. Plugins are plain objects — registration is explicit (see ExifTool's plugins option), never a module side effect, so consumer bundlers can include only the formats they use.

    interface FormatParser {
        format: string;
        extensions: string[];
        canParse(bytes: Uint8Array): boolean;
        parse(
            bytes: Uint8Array,
            filePath: string,
            tagDb?: TagDb,
            hints?: ParseHints,
        ): Promise<FileInfo>;
        writeBytes?(
            original: Uint8Array,
            tags: Record<string, TagValue>,
        ): WriteOutcome;
    }
    Index
    format: string
    extensions: string[]
    • Parameters

      • bytes: Uint8Array

      Returns boolean