├── .editorconfig ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── .vscode ├── launch.json └── settings.json ├── LICENSE ├── README.md ├── __tests__ ├── Model.spec.ts ├── Printer.spec.ts ├── connection │ ├── WebBluetooth.spec.ts │ └── WebUSB.spec.ts ├── graphics │ ├── Image.spec.ts │ └── filter │ │ ├── BayerOrdered.spec.ts │ │ ├── FloydSteinberg.spec.ts │ │ └── Threshold.spec.ts ├── helper.ts ├── profile │ ├── Bematech.spec.ts │ ├── ControliD.spec.ts │ ├── Daruma.spec.ts │ ├── Dataregis.spec.ts │ ├── Diebold.spec.ts │ ├── Elgin.spec.ts │ ├── Epson.spec.ts │ ├── Generic.spec.ts │ ├── Perto.spec.ts │ ├── Sweda.spec.ts │ ├── TecToy.spec.ts │ └── index.spec.ts └── resources │ ├── bayer_filter.bin │ ├── cmp-20_large_text.bin │ ├── cmp-20_qrcode.bin │ ├── cmp-20_text_line.bin │ ├── dr800_bold_text.bin │ ├── dr800_draw_buffer.bin │ ├── dr800_drawer.bin │ ├── dr800_large_text.bin │ ├── dr800_qrcode.bin │ ├── dt200_buzzer.bin │ ├── floyd_steinberg_filter.bin │ ├── generic-80mm_large_text.bin │ ├── i7_drawer.bin │ ├── i9_bold_text.bin │ ├── i9_buzzer.bin │ ├── i9_cutter.bin │ ├── i9_cutter_full.bin │ ├── i9_drawer.bin │ ├── i9_large_text.bin │ ├── i9_qrcode.bin │ ├── mp-2800_th_buzzer.bin │ ├── mp-4200_th_bold_text_font_changed.bin │ ├── mp-4200_th_bold_text_other_font.bin │ ├── mp-4200_th_buzzer.bin │ ├── mp-4200_th_buzzer_other_font.bin │ ├── mp-4200_th_draw_buffer.bin │ ├── mp-4200_th_draw_file.bin │ ├── mp-4200_th_drawer.bin │ ├── mp-4200_th_drawer_other_font.bin │ ├── mp-4200_th_large_text.bin │ ├── mp-4200_th_qrcode.bin │ ├── mp-4200_th_utf8_text.bin │ ├── perto_printer_buzzer.bin │ ├── perto_printer_cutter.bin │ ├── printid_bold_text.bin │ ├── printid_font_b.bin │ ├── printid_large_text.bin │ ├── printid_qrcode.bin │ ├── printid_touch_qrcode.bin │ ├── sample.png │ ├── si-300l_buzzer.bin │ ├── tectoy-q4_buzzer.bin │ ├── tectoy-q4_cutter.bin │ ├── tectoy-q4_large_text_font.bin │ ├── tectoy-q4_qrcode.bin │ ├── tectoy-q4_text.bin │ ├── threshold_filter.bin │ ├── tm-t20_bold_text.bin │ ├── tm-t20_buzzer.bin │ ├── tm-t20_condensed_text.bin │ ├── tm-t20_cut.bin │ ├── tm-t20_drawer.bin │ ├── tm-t20_italic_text.bin │ ├── tm-t20_large_text.bin │ ├── tm-t20_large_text_font.bin │ ├── tm-t20_qrcode.bin │ ├── tm-t20_text.bin │ ├── tm-t20_underline_text.bin │ ├── tm-t20_write_empty_line.bin │ ├── tm-t20_write_line.bin │ ├── tm-t20_write_text.bin │ ├── transparent_sample.png │ ├── tsp-143_buzzer.bin │ ├── tsp-143_cutter.bin │ ├── tsp-143_drawer.bin │ ├── tsp-143_font_changed.bin │ ├── vox_bold_text.bin │ ├── vox_cutter.bin │ ├── vox_drawer.bin │ ├── vox_large_text.bin │ └── vox_qrcode.bin ├── examples ├── basic.js ├── picture.js ├── qrcode.js ├── qrcode_printid-touch.js ├── sample.png ├── test-tectoy.js ├── test.js └── transparent_sample.png ├── jest.config.js ├── package.json ├── src ├── Model.ts ├── Printer.ts ├── actions.ts ├── capabilities.ts ├── connection │ ├── InMemory.ts │ ├── WebBluetooth.ts │ ├── WebUSB.ts │ └── index.ts ├── graphics │ ├── Image.ts │ ├── Manager.ts │ └── filter │ │ ├── BayerOrdered.ts │ │ ├── FloydSteinberg.ts │ │ ├── Threshold.ts │ │ └── index.ts ├── index.ts └── profile │ ├── Bematech.ts │ ├── ControliD.ts │ ├── Daruma.ts │ ├── Dataregis.ts │ ├── Diebold.ts │ ├── Elgin.ts │ ├── Epson.ts │ ├── Generic.ts │ ├── Perto.ts │ ├── Sweda.ts │ ├── TecToy.ts │ └── index.ts ├── tsconfig.json ├── tsconfig.release.json ├── tslint.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/Model.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/Model.spec.ts -------------------------------------------------------------------------------- /__tests__/Printer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/Printer.spec.ts -------------------------------------------------------------------------------- /__tests__/connection/WebBluetooth.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/connection/WebBluetooth.spec.ts -------------------------------------------------------------------------------- /__tests__/connection/WebUSB.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/connection/WebUSB.spec.ts -------------------------------------------------------------------------------- /__tests__/graphics/Image.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/graphics/Image.spec.ts -------------------------------------------------------------------------------- /__tests__/graphics/filter/BayerOrdered.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/graphics/filter/BayerOrdered.spec.ts -------------------------------------------------------------------------------- /__tests__/graphics/filter/FloydSteinberg.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/graphics/filter/FloydSteinberg.spec.ts -------------------------------------------------------------------------------- /__tests__/graphics/filter/Threshold.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/graphics/filter/Threshold.spec.ts -------------------------------------------------------------------------------- /__tests__/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/helper.ts -------------------------------------------------------------------------------- /__tests__/profile/Bematech.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Bematech.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/ControliD.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/ControliD.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Daruma.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Daruma.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Dataregis.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Dataregis.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Diebold.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Diebold.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Elgin.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Elgin.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Epson.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Epson.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Generic.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Generic.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Perto.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Perto.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/Sweda.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/Sweda.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/TecToy.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/TecToy.spec.ts -------------------------------------------------------------------------------- /__tests__/profile/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/profile/index.spec.ts -------------------------------------------------------------------------------- /__tests__/resources/bayer_filter.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/resources/bayer_filter.bin -------------------------------------------------------------------------------- /__tests__/resources/cmp-20_large_text.bin: -------------------------------------------------------------------------------- 1 | R ta1d1Large Textd0 2 | a0 -------------------------------------------------------------------------------- /__tests__/resources/cmp-20_qrcode.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/resources/cmp-20_qrcode.bin -------------------------------------------------------------------------------- /__tests__/resources/cmp-20_text_line.bin: -------------------------------------------------------------------------------- 1 | R tLarge Text 2 | -------------------------------------------------------------------------------- /__tests__/resources/dr800_bold_text.bin: -------------------------------------------------------------------------------- 1 | Mtj1EBold textF 2 | j0 -------------------------------------------------------------------------------- /__tests__/resources/dr800_draw_buffer.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/resources/dr800_draw_buffer.bin -------------------------------------------------------------------------------- /__tests__/resources/dr800_drawer.bin: -------------------------------------------------------------------------------- 1 | Mtp -------------------------------------------------------------------------------- /__tests__/resources/dr800_large_text.bin: -------------------------------------------------------------------------------- 1 | Mtj1w1Large Textw0 2 | j0 -------------------------------------------------------------------------------- /__tests__/resources/dr800_qrcode.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/resources/dr800_qrcode.bin -------------------------------------------------------------------------------- /__tests__/resources/dt200_buzzer.bin: -------------------------------------------------------------------------------- 1 | t -------------------------------------------------------------------------------- /__tests__/resources/floyd_steinberg_filter.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grandchef/escpos-buffer/HEAD/__tests__/resources/floyd_steinberg_filter.bin -------------------------------------------------------------------------------- /__tests__/resources/generic-80mm_large_text.bin: -------------------------------------------------------------------------------- 1 | R ta1d1Large Textd0 2 | a0 -------------------------------------------------------------------------------- /__tests__/resources/i7_drawer.bin: -------------------------------------------------------------------------------- 1 | tp