tiny-esc-pos
A Node.js helper package for using ESC/POS printer.
Usage
Using npm
# Install tiny-esc-pos npm i tiny-esc-pos --save
Then you can import
;
Example
// This package was mainly created for bluetooth ESC/POS printers;; // Make sure you are already connected to the printerconst writePromises = ; // Reset printer formatwritePromises; // Write 'Hello World' with new linewritePromises; // Previously passed config will also take effecttwritePromises; // Add 3 new lineswritePromises; writePromises // Offset printing (our test printer won't feed until the end of the printing)writePromises; PromiseallwritePromises;