react-native-thermal-pos-printer
Version:
React Native thermal printer package for POS systems supporting Xprinter and other popular brands
13 lines • 393 B
text/typescript
export const ESCPOSCommands = {
INIT: [0x1B, 0x40],
CUT_PAPER: [0x1D, 0x56, 0x00],
ALIGN_LEFT: [0x1B, 0x61, 0x00],
ALIGN_CENTER: [0x1B, 0x61, 0x01],
ALIGN_RIGHT: [0x1B, 0x61, 0x02],
BOLD_ON: [0x1B, 0x45, 0x01],
BOLD_OFF: [0x1B, 0x45, 0x00],
UNDERLINE_ON: [0x1B, 0x2D, 0x01],
UNDERLINE_OFF: [0x1B, 0x2D, 0x00],
LINE_FEED: [0x0A],
FORM_FEED: [0x0C],
} as const;