interface ParserConfig {
    ansiEncoding?: string;
    includeRawProps?: boolean;
    propertyObserver?: (
        fields: FieldsData,
        tag: number,
        raw: Uint8Array,
    ) => void;
}

Properties

ansiEncoding?: string

Specify iconv-lite's supported character encoding. This is used for PT_STRING8 (PtypString8) non-Unicode string properties.

e.g.

  • null
  • windows-1251
    • windows1251
    • 1251
    • win1251
    • cp1251
  • Windows-31J
    • shiftjis
    • 932
    • ms932
    • cp932
includeRawProps?: boolean

Include FieldsData.rawProps while decoding msg.

propertyObserver?: (fields: FieldsData, tag: number, raw: Uint8Array) => void

Observe property writing (this is not complete solution!)