node-escpos / driver

🖨️ ESC/POS Printer driver for Node.js.
Other
287 stars 27 forks source link

Add Barcode Data "Letter" Support #79

Closed YovanggaAnandhika closed 8 months ago

YovanggaAnandhika commented 11 months ago
       printer.barcode(code : number,  type :  BarcodeType,  options : BarcodeOptions);

to

     printer.barcode(code : number | string,  type :  BarcodeType,  options : BarcodeOptions);

The Code 39 specification defines 43 characters, consisting of uppercase letters (A through Z), numeric digits (0 through 9) and a number of special characters (-, ., $, /, +, %.

@reference Wiki Code39

YovanggaAnandhika commented 8 months ago

Thanks For Help https://github.com/node-escpos/driver/pull/80#issue-2011090404