Skip to content

Commit

Permalink
v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsLeenheer committed Jun 20, 2024
1 parent f8549e5 commit f8d69ae
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 7 deletions.
44 changes: 43 additions & 1 deletion dist/esc-pos-encoder.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,48 @@ const codepageMappings = {
'cp864': 0x28,
},

xprinter: {
'cp437': 0x00,
'shiftjis': 0x01,
'cp850': 0x02,
'cp860': 0x03,
'cp863': 0x04,
'cp865': 0x05,
'windows1252': 0x10,
'cp866': 0x11,
'cp852': 0x12,
'cp858': 0x13,
'windows1257': 0x19,
'cp864': 0x1c,
'windows1255': 0x20,
'windows1256': 0x21,
'cp861': 0x38,
'cp855': 0x3c,
'cp857': 0x3d,
'cp862': 0x3e,
'cp737': 0x40,
'cp851': 0x41,
'cp869': 0x42,
'cp874': 0x46,
'windows1250': 0x48,
'windows1251': 0x49,
'cp3840': 0x4a,
'cp3841': 0x4b,
'cp3843': 0x4c,
'cp3844': 0x4d,
'cp3845': 0x4e,
'cp3846': 0x4f,
'cp3847': 0x50,
'cp3848': 0x51,
'cp2001': 0x53,
'cp3001': 0x54,
'cp3002': 0x55,
'cp3011': 0x56,
'cp3012': 0x57,
'cp3021': 0x58,
'cp3041': 0x59,
},

legacy: {
'cp437': 0x00,
'cp737': 0x40,
Expand All @@ -155,7 +197,7 @@ const codepageMappings = {
'cp1252': 0x10,
'iso88596': 0x16,
'shiftjis': 0xfc,
'windows874': 0x1e,
'cp874': 0x1e,
'windows1250': 0x48,
'windows1251': 0x49,
'windows1252': 0x47,
Expand Down
2 changes: 1 addition & 1 deletion dist/esc-pos-encoder.esm.js

Large diffs are not rendered by default.

44 changes: 43 additions & 1 deletion dist/esc-pos-encoder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,48 @@ const codepageMappings = {
'cp864': 0x28,
},

xprinter: {
'cp437': 0x00,
'shiftjis': 0x01,
'cp850': 0x02,
'cp860': 0x03,
'cp863': 0x04,
'cp865': 0x05,
'windows1252': 0x10,
'cp866': 0x11,
'cp852': 0x12,
'cp858': 0x13,
'windows1257': 0x19,
'cp864': 0x1c,
'windows1255': 0x20,
'windows1256': 0x21,
'cp861': 0x38,
'cp855': 0x3c,
'cp857': 0x3d,
'cp862': 0x3e,
'cp737': 0x40,
'cp851': 0x41,
'cp869': 0x42,
'cp874': 0x46,
'windows1250': 0x48,
'windows1251': 0x49,
'cp3840': 0x4a,
'cp3841': 0x4b,
'cp3843': 0x4c,
'cp3844': 0x4d,
'cp3845': 0x4e,
'cp3846': 0x4f,
'cp3847': 0x50,
'cp3848': 0x51,
'cp2001': 0x53,
'cp3001': 0x54,
'cp3002': 0x55,
'cp3011': 0x56,
'cp3012': 0x57,
'cp3021': 0x58,
'cp3041': 0x59,
},

legacy: {
'cp437': 0x00,
'cp737': 0x40,
Expand All @@ -153,7 +195,7 @@ const codepageMappings = {
'cp1252': 0x10,
'iso88596': 0x16,
'shiftjis': 0xfc,
'windows874': 0x1e,
'cp874': 0x1e,
'windows1250': 0x48,
'windows1251': 0x49,
'windows1252': 0x47,
Expand Down
2 changes: 1 addition & 1 deletion dist/esc-pos-encoder.umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esc-pos-encoder",
"version": "2.0.1",
"version": "2.0.2",
"description": "Create a set of commands that can be send to any receipt printer that supports ESC/POS",
"type": "module",
"exports": {
Expand Down

0 comments on commit f8d69ae

Please sign in to comment.