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

    Variable BARCODE_FORMATSConst

    BARCODE_FORMATS: Record<string, [[number, number][], RegExp]> = ...

    Barcode format validation rules.

    Each entry maps a barcode name to a tuple of:

    • Valid code length ranges: [min, max][]
    • A RegExp the code string must match.

    Used by Escpos.checkBarcode to validate input before sending to the printer.