me@computer proj % node tpe-sample.js
- ~/node_modules/thermal-printer-encoder/src/thermal-printer-encoder.js:24
- throw new Error('Language not supported by this library');
^
Error: Language not supported by this library
at new ThermalPrinterEncoder (~/node_modules/thermal-printer-encoder/src/thermal-printer-encoder.js:24:13)
at Object.<anonymous> (/Users/owner/Desktop/tpe/tpe+qz.js:3:15)
at Module._compile (node:internal/modules/cjs/loader:1239:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1293:10)
at Module.load (node:internal/modules/cjs/loader:1096:32)
at Module._load (node:internal/modules/cjs/loader:935:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:84:12)
at node:internal/main/run_main_module:23:47
Node.js v19.4.0
Following the README.md, the following occurs.
Proposed fix: #2.