GitHub - posprint/command-builder: JavaScript library that implements the ESC/POS and TSC protocol to buffer, also provides an AST like JSON tree structure that you can preparing convertible templates (hmtl/xml) as you want
Receipt printing with ESC/POS | a javascript cross-platform library | by Lakshmaji | till | Medium