escpos-ts API - v1.0.0
    Preparing search index...

    Interface ProfileData

    Raw profile data as stored in capabilities.json.

    This is the serialised form loaded from disk. PrinterProfile wraps it with computed helper methods used by the Escpos base class. Obtain a ProfileData via profile.profileData on any PrinterProfile.

    1.0.0

    interface ProfileData {
        codePages: Record<string, string>;
        features: Record<string, boolean>;
        fonts?: Record<string, FontProfile>;
        media?: MediaProfile;
        name: string;
        notes?: string;
    }
    Index

    Properties

    codePages: Record<string, string>

    Map of ESC/POS code-page index (as string key) to encoding name. Example: { "0": "CP437", "2": "CP850" }.

    features: Record<string, boolean>

    Feature flags indicating which ESC/POS capabilities the printer supports. Example: { "paperFullCut": true, "paperPartCut": false }.

    fonts?: Record<string, FontProfile>

    Per-font column and dimension data, keyed by font index as a string. Example: { "0": { "columns": 42 }, "1": { "columns": 56 } }.

    media?: MediaProfile

    Physical media characteristics such as paper width.

    name: string

    Human-readable profile name (e.g. "Epson TM-T88V").

    notes?: string

    Optional freeform notes about the printer model or known quirks.