{"repo":"seokju-na/react-thermal-printer","free":true,"listed":false,"github":"https://github.com/seokju-na/react-thermal-printer","clone":"git clone https://github.com/seokju-na/react-thermal-printer.git","description":"React for thermal printing","language":"TypeScript","stars":463,"topics":["react","renderer","thermal-printer"],"license":"MIT","category":"ui-components","readme_excerpt":"react-thermal-printer React for thermal printing. It is used to print to a thermal printer that supports ESC/POS commands using React. It provides a custom renderer to convert React elements to Uint8Array, you can easily markup the printing stuffs using React components. Motivation Installation Usage API - Components - - - - - - - - - - - Functions - render Components Interface of thermal printer. Requires type to determine printer type. Note : Supported printer types are epson , star . Custom encoder Pass encoder prop to use custom encoder. Display text, and change text size or style to make it bold, underline, etc. component also allows element props. Note : allows only text nodes. Display on the left and right sides. Feed line. Draw line. Prints the character as much as the width which from . Print barcode. Print qr code (2d barcode). Print image bitmap. Apply greyscale(Floyd-Steinberg dithering): Cut the paper. Perform full/partial cutting, and feeds lines after cutting. Print raw data. Open cash drawer. Functions render Returns: Promise Render element to Uint8Array data which corresponding to the esc/pos command. --- Print via serial port (Web): Print via network (Nodejs): License MIT License","default_branch":null,"files":null,"tree":[],"storefront":"/r/seokju-na","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/seokju-na/react-thermal-printer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}