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

    Interface BarcodeOptions

    Options for Escpos.barcode.

    1.0.0

    interface BarcodeOptions {
        alignCenter?: boolean;
        check?: boolean;
        font?: "A" | "B";
        functionType?: "A" | "B";
        height?: number;
        pos?: "ABOVE" | "BELOW" | "BOTH" | "OFF";
        width?: number;
    }
    Index

    Properties

    alignCenter?: boolean

    Centre the barcode on the receipt (default: true).

    check?: boolean

    Validate code format before sending to printer (default: true).

    font?: "A" | "B"

    Font for human-readable text: 'A' or 'B' (default: 'A').

    functionType?: "A" | "B"

    ESC/POS barcode function type: 'A' or 'B' (auto-detected if omitted).

    height?: number

    Barcode height in dots (1–255; default: 64).

    pos?: "ABOVE" | "BELOW" | "BOTH" | "OFF"

    Position of human-readable text relative to the barcode (default: 'BELOW').

    width?: number

    Module width / bar width in dots (2–6; default: 3).