{"_id":"@posprint/command-builder","_rev":"62-2a69984ab86a33d60c69df68df701053","name":"@posprint/command-builder","dist-tags":{"latest":"0.0.50","beta":"0.0.43-beta.14"},"versions":{"0.0.1":{"name":"@posprint/command-builder","version":"0.0.1","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"dist/bundle.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix","build":"webpack"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"6dc2232bd27bde52f8fe04ac65182bc2aced8a60","_id":"@posprint/command-builder@0.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yF8FY/ltFBIjE2OTgTXokkn3ifAcUjazb5i63PCYcJkKj5Ta4a0VBAHTBtmHpcA9xOvfaqw07wvUxF6OZrCuuQ==","shasum":"dfb6c897b2377385f159f936f8b805db2f8071c1","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.1.tgz","fileCount":23,"unpackedSize":34216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfa0FaCRA9TVsSAnZWagAATwsP/RaTj/XSs6jHuGIzke07\nlILyq/rIV7Gd7yl7GypOcHSvPxKhYezxT2tugFVgUmc1ippVPk44jtiTdZf2\nqKBRmUt9yoraDCIk1SaK7sDjHoExFMJK2OdLkSv/Cur07N53nUl2v7IeU8ng\nB1c/FfcS3Tb6yN4WxALZi4bwlxhOc4RaFqWVE1JXdO+3LItDJFB06M4k4NBc\npAV0gFeo63RQP+QpU7dNo5FgjSvLryY+n6kFE1ddKHjPlP8DwVn5/IA9w0ei\njbAJXCIU9NrVt50TIfF3hl/xOQuB4pJic0wJkwQlRvz9UAj26H+M8VTS4ZF5\ndPElxQTHdHWEktTnL3TAaZMc2mf97li7TrDSqO1XU1yZeqPe4S0pdEMHBJBS\niqjAxiQfupoXKxjX+iL4UXAKmZ8ZSpE3cUFqY3xM4D5HDLDv0rTe0+3LoyaX\nhZ0V3uSRoMOFHOcc3WcH0AdnL9nnRLg6mK2lsAm6SXKVKdGviu5LLxLuJkWk\nKZP5RpjXzIxj2VL1lJPAipOkx4/LlR/yhbDQdzQKLSKVCiOrTlbeeLS+z8rc\nQ3mOVOgz6tYSh/3u7nnWoFuTm7qkphwlLAbZuZtHFMjFywlJ/BlQCBJG9Ht3\ndQPnb6B/QiXoViwyXfhGUY2ZOkcelk+lyQAV8gEAYDs3JUuk3yRp7PwUBA2U\neZ/1\r\n=N832\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa5vebQFGHl7zyUOX7F8rF8wuLY+4hLlSwWBVni9rkVwIgPGoM6qfLSDuul1+InkcntbvHwlH65eYYu5h5xZOfYl4="}]},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"}],"_npmUser":{"name":"princescar","email":"princescar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.1_1600864601933_0.8090391797490084"},"_hasShrinkwrap":false},"0.0.6":{"name":"@posprint/command-builder","version":"0.0.6","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix","build":"webpack"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"decd5e23a822f8d72db51c83964d1e00a43e73dd","_id":"@posprint/command-builder@0.0.6","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-5vgpdViolUe0EvpkQQr2j+NcPze9vE5+dUbMafRLfQRv9sqJsnQp7QMVtFnZRmXTy2zLHwVccOTUmVXnSPUY8Q==","shasum":"fc0927665e7694d673035e768dacf06b070401ea","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.6.tgz","fileCount":23,"unpackedSize":37304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJft1+1CRA9TVsSAnZWagAAYQYQAJnfWGafk+HyiP4UxTld\nPKqeftpO0WsosGpsaYQ3eQfWyQ3ZZXSFbBnj0mhUQEToPBYygkS/icMT4/7B\nWHGa28G7SWirvCfGfzojPXBJQLe8YRFaD6yEjBdTXHlFOaw6udJupLfLCVab\nSuGjZfXT+6+AQVDmPhQRzpanwHbNlwOe/PFZ9PjH+FUL5u6rmvAAJ4+nOar/\nt0TZnOjkpT9z77ET8c1DBUpE7MinOY42eVhb0by33HjwAFcDGGb6olWnKSu6\nzECnqYk+p/aYM/iWnaFf76lc5++i+reAgyGSF+EVzHAVG/oXz5pJmqJIGobe\nGoeAZn6aSXwcq5QToOpmS4mv1FQaZ63IrEYto3ivCuX5HEEPEdYcxmoiBPqZ\n6oQtdtTFDJ9joN0aMvCh701SAOUXVz7uC2W13JDSGQGqnEL1FCm6Z5623i9a\nmwO000gTJa1WaRaH16OBoAfiYfmJk4iIJ+aQojeJrNbzMJ0Zq15hU3qM9c4W\noW0WLxVNAqcsGTPG7eMhtKb1/8rxEw0QofdVtCEp8diaKr0OqPM8wJqMYyST\nOTYwyNPejrneR++D9CP/h/pXcxNgu46ZvESTeNWU8NaYLvXyHg+od3vYV+Ed\netq8R36P4mlnZe1L1IYqnRXzJomIYYqEcznHl5C2AUU7AQmdsG/VBG/dZ8cf\nGL4N\r\n=thRU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPQklU3aCAOMikuLPriZ9KEIURd7cXUdEWjvfk7XFWcgIgdjVe1x7MKCmDP1z/D3R7OKIxOW2M1oqcESCiGrymJIc="}]},"_npmUser":{"name":"neil-yu","email":"yudiegui@gmail.com"},"directories":{},"maintainers":[{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"princescar","email":"princescar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.6_1605853108835_0.836687609211467"},"_hasShrinkwrap":false},"0.0.7":{"name":"@posprint/command-builder","version":"0.0.7","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix","build":"webpack"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"7febef0e097c71825af188bb3db0a20fb123db27","_id":"@posprint/command-builder@0.0.7","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-GqpAmcNwFegCZPjb3fGuD9IElgcw4J05m0rfxTMssgYYwKuPpmmG2Q1AYzScYPmGwEK1LimEo4i7nxlbDppYGg==","shasum":"441912a6713bd2469f8606b6f6df8ef90a0bc3d3","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.7.tgz","fileCount":24,"unpackedSize":37895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv2ueCRA9TVsSAnZWagAArfoP/0HgvVVp3hlquRIB8cNq\n9Fa3Td5iZPanlgU+WD27yDvYjk4IIZ+CQkFrrK/oqe/4/r/Rcb7Ngm11aCQT\n9bU0TSYnr5cmh6pskVeW/uGW4KatP0u/2P3JmEEShfjOghvE6OKUZNRGiDPU\nWVrD/MJsFTUb6gVD/KFZqZRIlK7o5MjWx/DSZ4g6WlkdKLXmoLQEB06l46fu\nNDyhzlyGKsr1mxV8jY2IlR30l/zZgJpgnMlBkSSFgVRhhecyNejnyQhq9juB\nQJcjQQHTEO3E/N5A0uu2Hz6M0arTP5QsmpmXBEaFP3bgT9lRsXt/5atmWCWq\n2aRLD2WeE13pBzysFG8bjWurI96Aul/1+ApT9B6HRJrH/Dffwlei4EyStXnM\n8/Km+BcdbguVApWj1cWD9OkGT6LyWhYPsV0Pyph//2XcY4SvoS0oFwws2rAO\niLbNA/mHcBIC7nenWhznbn70RQhbvwCv0fOYyNr6bLvuRs3UjrNYt2+zKloX\nYF2GogY+QpFv7FguA2apxr4VAbiD37Wf6sl1zKJD7lCzSdAcp6lC3HtPUAXg\nwyVNjiWutC/2JdvMLo5eRVRohPzGWFZT8xqVsjn5ZyQ+iy6JF7B1xQsBgzYK\nSMsy1b1e5ariYWpw6jT3b8Sh4srAl1NX8ODrxjFgRYEetJOOOp40ky0oPe/g\nz47o\r\n=SSsH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC38gE3CblxllUAqCrzpDEOSjxTcm1gRZoqXC7M+GVMtAIhAPEsDXI30zL8YHuiZtV0SoJ3nmRRqgM3c+BrvBqiBtw+"}]},"_npmUser":{"name":"neil-yu","email":"yudiegui@gmail.com"},"directories":{},"maintainers":[{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"princescar","email":"princescar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.7_1606380445459_0.11787047830183206"},"_hasShrinkwrap":false},"0.0.8":{"name":"@posprint/command-builder","version":"0.0.8","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix","build":"webpack"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"61216301bf28b9199ea19ceb43e7bd96cd52f5ca","_id":"@posprint/command-builder@0.0.8","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-YmvfgKUKfK9O9kQ2e6QgH34+IwPrPZbJLYbhCPXoLINs6SGePPfXKXmYLUBugXd+EDjMnQff+DnnBt1QOOqhvg==","shasum":"71f90b0f03efa8b628d32a49ab8a0eb9dae003af","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.8.tgz","fileCount":24,"unpackedSize":37892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv3zaCRA9TVsSAnZWagAARSkP/jFJhZCCGVctK3OxUMUW\n8tfDVS4hJnzCReg0h3vYIFWAZPNaEhozW+fIPtjmYi87o5egYhS9KqTxerK9\nJTjDCYkz7qvGSzDKXizdJDItD07sFAlhZpL8YxXxvsVWWDPFKdWeuM1O4cyk\ntnL0LUQbLkTY2bjcMhXXBrip2rnMzuqL1CDeKNhqeArXZNIA7mbv6kRSnk5C\ns00CBXEEs36WiRc1zVW4habElimbMcQGW08NX15cHa6Xm0EV6rMzQdf0hiXg\nYYFutz/1RX/osjtLKS5PilmX6Zc6CQrauj2/mv9tRd/EPHN72IWbLzZ+sZzH\nunsoL/w+K0DQw758aHJ81lkcBa+NQCEyKPhgLfl2ExDGwqpyhyil21JSiZEK\n4MFiGNQLhCNsl1UpKSONX+7y3ffuW3DJ9q2Apkx/R8pQ/9HzYVRH2UAmVReK\nRsW3zV+zMOH8ryMChpNqtXzjdhlcls5jRnwBKcPIg7eNlRLbtJ4C5U822tlF\n5goJqJzmrDS4ummJAKzrntwCoJPIPawoFiXfoaW09x3dzINgMGLAtBiV/oaN\nujkpBti6C3LUpKEcbjsDiW3l/pL9ZL5Bf8IOASaOCTxzaT9WU5yrq310+w20\nepmoWuB0UauigTTqSRZOIbwWQnP9F4VKtwn5fNPOaiDd8dMnM/qSHru8pJfh\nhH2d\r\n=xUmm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSdZj/2ncGOzj0vYh2CEIq4mrvLFrPTb8j3WkbBN32fwIhAMnbS0N9ZoxZIrXigYy5P4tAyAhnhKAm+oG1XQewnEVb"}]},"_npmUser":{"name":"neil-yu","email":"yudiegui@gmail.com"},"directories":{},"maintainers":[{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"princescar","email":"princescar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.8_1606384857926_0.4208667325135309"},"_hasShrinkwrap":false},"0.0.10":{"name":"@posprint/command-builder","version":"0.0.10","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"9821b952af88e298136a0d43c36173139a970160","_id":"@posprint/command-builder@0.0.10","_nodeVersion":"12.16.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-69bc+xw7QK8iLeUiGMpyn8NBh5rTSUEOytK1OFD+2k0ckoA4o/B6K+cONaITZt3hkahYpFJO+O+DVDwr5QO9mQ==","shasum":"8e7497f55c51a8f5b71963341ed1b265f35918ff","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.10.tgz","fileCount":24,"unpackedSize":38539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1yWzCRA9TVsSAnZWagAAgggP/3WSzdX8e+jb215Wv7qy\nAXOztrVohpQw0FKg0vOiPzHOF/lhTDYJQvBPzBZ3jfAeLLbtBjrtim9WZkgI\nMXwo3OxCswCuMOrpXwI7c6gCINxKN865FIERYRwNA+NGmHCmlXuWL4XVGyvs\nwrLn9BZzX9IEUqJ2MPMvPoXSyzAdlSHu26BTwmsGDNvtrhVzk/HL7ViQf4IQ\nZd7DRIz187GQNir20ev3T1YsMZqpdWavu5lMufanB2gZ0895tOXQLIPgfbtf\nsNBazXfdgKHU2VpYtOjIyiVtAd1JsWRUgMZ6hn5gWqn0UuPfpd2BPbLVtyM4\nuS3qXekWT0Y4dsqx5r0qddvm/4pGKRZcoA81flqps9DD6epuuCos5ZqviiZX\nuKKdbWSSHIirYlCElfpuCMJh0uwdqXHcrQGO9ebsaK+Ln/pOKPpjOx5B4+fY\nQM+YhQD7XZKE5p6XrU9IESzd70m9Ch0B87lmZEsM7MuhXZxStSm073TS0tdM\n8zJXsWhtHTdfTGpobuKLglF9ne97sTvGSzayGrUmknWquAIzLJAfnvH30cuX\nSdSBTnU6dAqI31J1O3mkumApht/MrH7w4JUPwuKON7LDW+xZbMio6m/8gH8a\nhVN1NmRzP7w34WwlUIpvbcs/BQMUMyxat8IL3AqdIkOHvjFemVe60c5RbsY1\nXuhV\r\n=Z7kK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtYehwyvGvUJNPz5sV3tXN6lT5IHowN2v7BB0VRpgmmQIgQsv/TUpyzqHUhOpzhKwp2/il2xrk5MaiPZ1zwDa34as="}]},"_npmUser":{"name":"princescar","email":"princescar@gmail.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.10_1607935411278_0.5188489563304872"},"_hasShrinkwrap":false},"0.0.11":{"name":"@posprint/command-builder","version":"0.0.11","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"5596243bd999918e83ed4405030b969493b3bce7","_id":"@posprint/command-builder@0.0.11","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-KIYRbYBEuc7CJfcSgTjQXINz6YW0sFPvewqF98mI0gWhQGyQUduR9tQ7Urb/a2cq5vEiWwJgYqb2WTdpQ4jNVw==","shasum":"08e0223577f6cfbf89597a1302f96a1ac5a1474b","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.11.tgz","fileCount":24,"unpackedSize":38424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2GZxCRA9TVsSAnZWagAAxp8P/RzpNkY+dPfw20j7Yra/\nVcOVTC/hh/On96hhpSoovmK7WUNQYPDhHgR65ugGvxGPg8E9GY+6dJu5U54P\nfqxk40JGRqJkqiydDUiEZc18hd6YSIclUmWFrwuFn2PaZSUPcpsYEYZKQRqo\nvClXZfrbcWxgwBc5r69JATY2EO2bdR90uH0t/9qpiOUd9cW3ktc7UTqUNC1k\nXOk3pNIeH3ywku5Sn6JDV84TO/S6AbmyKS0M4epGGAMg2Y6m/37QeGhWm3EH\nBGaUlPB4/neecOz/7xBHk1TNwplugSJAiAE0Ii+K1ADuwge0v19pQTfRbhUv\nOFZz3ti3eq3JaxD2hNeU4dr+8J6MSOLHg/LiXNXYE9aChRWpP1yvufoJuIrL\n8rvEVQxSzeqF+hiMJiPiVCZ1KeEwIOaI3hhUSP9535ojJqzYZtawLNs18wFN\nydr29Q5G7muHLhDW0cMyQeWm3AXr2SSiH8nXLkkNmCAeVaXAKlogFx1FcPXC\nIuLkI2d7Kla4VNT7gZsdyyFaU6W5XdXz+KCPrYcfc5Q/6oZXSMfRkzR1cEte\nllFMdcLLF3M5NfPCpQe7xPGwVfMvEy9prDz1RzCvWX8AaJy76fF1nZge1F9D\njMQ7cnbg/WfwFc6eCT9OssaGvfvSsFGiE6xoeB19wF1R++mRpVRkZBxrGyko\n6dDE\r\n=hRyq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf+cWweyUVV3zHZ2BDOFsbMhCrtxCBOUoaXDrIMs/jngIhANWFvRUhZdaLtZ2HEeIvthRM+DQbmVaE2iP/6n8xOPSy"}]},"_npmUser":{"name":"neil-yu","email":"yudiegui@gmail.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.11_1608017521054_0.2787619942921564"},"_hasShrinkwrap":false},"0.0.12":{"name":"@posprint/command-builder","version":"0.0.12","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"de5ba027321d3e03d93c0a87a658483869a3d1a9","_id":"@posprint/command-builder@0.0.12","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-1MWBJSMmB1f0E16xCVJyyIN+egBF/A3hG248hHySRBZPfdVGgp4ay8yeu1JHlCrUyFpIVVla3dwRSL6Cyu46sA==","shasum":"62dadb9cbb4310a59b2c2c2d2b3a128b6e6c025e","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.12.tgz","fileCount":25,"unpackedSize":45250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZT2MCRA9TVsSAnZWagAAoXYP/3yQoCmd6GXkVjNbAHHr\nHCufGCGJ2vrtpaJ/6d7l+EzF22Ifqohk9g0AmIsZEroJIrHHKySdbRpMFcxX\nqDPBnxaSATCm3gF/OgomD1yeL4rkz6yW5SDWPJ1+szlq3LEUwr5J7dMPfCmQ\nxIoecrOgN/fDT4nauijOle7gDwFXXI2nQ7kpWJHZnHfR6tiTDvSOrE6qf2Qo\nfU4gPrtht4P08DEh5IHI9qJjtb7tKxCWEzvDSU2YfhY6PBFzRz2wz/765+oO\nNEBodLgfDQ2DQdTYdJoZDBA3t1CMqvSaoZioeBUzi3pIJGMCBY7mtyACFzVv\neCjZamoL46flJCQVbENO1vFZI4Dj5bHJS3ht4K2LeY6DSNLPPZjDPkMyvnww\nhG+/dn29REA13GzdBsanNss4oRkf8G6L/3fFCRfu1Ja6Bnr9IwUTmp796DjM\nQnyWOOZCOzFZKcdTDrv5MjtqhZhEYj2MM+SB5joNdpQ9dBNMmrCCraKVun6l\nmYlr2ZPWJPXVN4ULwIVbN6MmKape6jznVSOefhflzElft04g3YJuivjxgdDd\n09cI2uh+1ddM0V5Iqy2pxXnpYhfxZih1UX0AKo7kOZr1lKnJYv9SmAVjOxcB\ncbxQqXgN/YqUiH8GQhLIbQK3uk2mSDN+Q+TmHS20GY52SNBwpDurLoErt2o5\nkovH\r\n=ofpY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyqcnbF/iwnP6EKvXzNa7Rb9O1u/KSkeqkFgxV6MsZfgIgBvLx/GTS0DgU17HoG79mwvV6UhFoejN+ioU7pFAIDGg="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.12_1617247627502_0.7002582598721978"},"_hasShrinkwrap":false},"0.0.13":{"name":"@posprint/command-builder","version":"0.0.13","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"776bc268d35041458e9381453b738b27ce7138e9","_id":"@posprint/command-builder@0.0.13","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-i5kaIHa2LJFrYtoqTrQiVokEcru04bnviU2ffpz2kL8DngCpprO145dnmSnjiQhqVvIYBPwujwi0ugCxuLTwZA==","shasum":"bd2239724df57d5e56a1968ae01199f40ec4f670","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.13.tgz","fileCount":25,"unpackedSize":45615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdTw+CRA9TVsSAnZWagAAIskQAJ+sigg0KOzarYcs7Gtm\ngnTwjwW0SMK2W6r1vore/vUZtMsMudM9y6KCSfHrA2NrRPtQpD3uNqadr1/K\n7i4nk/LLHYz6YemBma5kBn31IQ1f5LPFuC5i3T15C5e1VKthqOGr75vEXD4I\nq5BLvKkCbDP4jNOPkTV2KMGooMffE1yjjfUUcUZz6kUW3Y5f8Qi5tI1ICmTs\nBeqkr5aVl5LV442hr8ixFu97uqL1+bJGtvs0j7WaI+14ftauYAyNiFlavlQc\ndKvDQf7Dl95aAl/eT0zrJRSzhTpnKq5TrblsZl7drHnuOOoyK7S8momoYXpg\npe7yp2BQSt+27yFHKcwiLJLN8deI3gr29mL5ioN8rB5lL7pseY08ktVRqoNX\nSo636V9JyQpLQFu9ezyLH+QHZn0h5w2pve+G2Pt7SEO58B7XvuFz8t5AFHdX\nWybqsrxwFoTGj7ubQIzBpF1Ybf2JsFT7krZovHeyrBNeqlywWzCfPA1EUp+2\nHT61RjPiY6YapQF7/6vw09pFlDvGcQPCabhusHvuOpkSjvh/4iNRhZJzw9yb\n4H5XvV8gRXv7dOeZwVFwdnkZIuhMlmoWjaC5OIeHsgsYiK30morcgkqLCSaQ\n8Ty05P+WvYFhWrpynwGsT0pjJibMnCzoxZQzUQvJlfknc4QvO98/zdbWdB2v\n1IW4\r\n=AuZt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwqZYMQKNzIYUAIRdhp9kNj+hQzdXg+gHlZItwYK3MlwIhAMDGCaCUt6seIG2CqBFmUW7gHk53FaifBeb3bWb9CwTO"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.13_1618295870150_0.06816246297851847"},"_hasShrinkwrap":false},"0.0.14":{"name":"@posprint/command-builder","version":"0.0.14","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"9f9a1d8aa5faffe2cf067942f0bf3f353d7d8bb1","_id":"@posprint/command-builder@0.0.14","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-CqF1K2rSTcTmpnJ9xp5ug0ME05bNtiBM9g38kFcn5OQ10uLN1ceYB0GSsOrvdJ8oHSiMEh0NHTfy3lfUzCKouQ==","shasum":"2e44d55fbbc03321d09cded10aa335f3b3073fe7","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.14.tgz","fileCount":25,"unpackedSize":45952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd7EBCRA9TVsSAnZWagAAV40P/3jl/GStETAk2qe/UsLf\nERlxQtudfavfVaCsPasmJW4yTRfmFehk9iPCxrQuFAT++4j1oK9gWY1SuQeS\nu5PN630I3QX+N+4Dy8g9w2ufH5uBAg3csUbaMhgNjAtWKEC7iZYbc3V1WV5l\nyr6W5K6TIqNNL5IzS+/GuAOJZ/Hg1bdg72VxEIIt03tIJVckrNw7leYPk9c+\nyQE1oNlYwU4JmZDzV3MEKuKcaFXJ1TEmolRjzZoazltAfxT055pKxqWCBdnZ\nG5yaugwwyt+gTi3HQ942aGhSUIgfKD/qEynC1fiEtjRnmyNFa3abFiA6G5XU\n5S5EBeL7Q3163ooMk/vprhiMhllAJnHGfgxcXZVHuQMOMRztjPvneubISMq+\nfe/AoobkG/Vk0K92tTKaQ2lUQ1ZRz+8K2vh5bqhN+jfhB/L33jr9SvYDVTT7\n7aWWnjoK0svJuMOrDqt3RJ4vM0/6m1t1hvS+FnJMhLKZ2XYD0d3fmAcLDN30\nKaN77M4Ir361qSF4cVWwoQhptrEKPYOc5lIHmd+1fig8DkFd0lC5F/dtcz72\n8QBdHJJDUAM7oL+9LXoBpoO5IZhrDY5mYkbgS1vqFFcFSpduSee+Nq8yqzAo\nle0R60hPxXS/4kev0h/7KsBuas6n2FzuwnByBdvpR0nGYOZYrvlFY3VVmkJV\nGhzo\r\n=Hr6V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSDpyFoQfyCcrKb5FG616UJZ94B2whFgfYX1kTU4sZFAiAMB1LSBMP5p1zp3nTdiN3LkBxAGAnMQAL+1g0MdVvfCw=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.14_1618456833104_0.2436070456776076"},"_hasShrinkwrap":false},"0.0.15":{"name":"@posprint/command-builder","version":"0.0.15","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"93d09fc157a91d861459d6a09d9408a1031e3c3f","_id":"@posprint/command-builder@0.0.15","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-/fpOn6MEHe5OoO2dbUsV+/SeBoU/NRzjrbHf3VYxh1j3ekhNkAeJCvBJI9RE7ofLrqSEGEKA9CxpNpYPtpI1og==","shasum":"7a627fed3f9ef5e3a8d879942fb81c2f0a224db6","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.15.tgz","fileCount":25,"unpackedSize":46745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfUTsCRA9TVsSAnZWagAADE8QAIIgfA74l0vSILXP7qGE\ngKT61tJyCx6FpaI5x3iNp2jB0vOrehhUPON+fgv8inkgiyI00N7mdPXCVyPw\nyOGDJsOvS6XjdTAHGFWzghIpPHKerjDZhsVzAGm6Bvxpb8cflVIT5AUPVbgv\nvpo9SURLgG+QhZ9aOYRiHDh33zIxNiDNtmIflWKaMugFf3IAWCFdNSZPGdpf\nsGcPObpmeK3WJgKkqy6GxszDQG2auq9sdOicodiD6PwzB8NihKOdeIPcU/O3\nok+kgi9u22D4ytEoL8kSKd0N96piTMHpmLkXwKxUN9vLg1mZky2zBRiWWrFD\nMZ3aK2rerxrhjMi10+QMRmXhqOYjGOPMZY6FndyF9+cDo/QaOjRdHxxcd+8m\nmQ52lSl/XjZN0tRfW043y8oOZpqk7l7qAwkctlYJokaNejvmdIInMVsrYKwN\nu3uHW/efIGvBxuaPnCdGbvQx2HEE/WQ/rxOl9TOqUwPpCJAoIz7ISBPh2Gz2\nGOXB7CiXL2omfmm7sBwt2T0GiZQdIHMQ7e+8myd2IWbWU0YXwqVesf+CBFpU\n6b7P1LKWnrF9swFwvLaJIV2rXLJUTrF2Cx5AaIa5MgsF7hjLavl7jxA1LU3W\nUi4KBfhW4k8gJVT9Ji5hhVWPvhSDUNJrbvPfEuXy1wdT6ai67FSVppDv6k9C\nO5CK\r\n=dhO9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFD1+Qetg+djRVM3DrAbDFj5fWBG1Qal9fLbAUEfKDxHAiA3Fxllz6XyREFNXEw/T8vVM8x1rXp/oE2p8J/WVeZTgw=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.15_1618822379462_0.6643637717073223"},"_hasShrinkwrap":false},"0.0.16":{"name":"@posprint/command-builder","version":"0.0.16","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"93d668adbbda784237e911ddd865818b91fe3164","_id":"@posprint/command-builder@0.0.16","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-/hX8oO0X72/fvMNOFRzITCNxD/Sx66Ng1+lFm4aJMqPKkJXjYl0iCbJnHOB2fzPnIv7SOLX9yToYwQ5vQE+HVQ==","shasum":"1eff9f509108b227693c64a789cfe0f5ac434c93","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.16.tgz","fileCount":25,"unpackedSize":46827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgf72YCRA9TVsSAnZWagAA3d0P/3ebMO4U22GpQtgeB9OE\nhhWts1VJTKQQpVkfYyy/FKqLjlRyAHe5GWARZk1Dd9NgDNY1xNs756Bs7rGr\npdGNvz0HfO92Odth0AxKf0Bs4Xe/Wd6VYGmLwGs3IziLtMZUmvguz2NXxUDV\naXJGrEyw7Otv5ppzHre3GSMFiIbacu/yhQxb52GgakHEtG7k2CD+o0uFKfXP\nAMo4DaifHO9CCLrSdLBr7c9sBsbzQ1BwtFJ7qHaNu3HWm0agXRizrZtjb4vo\nU4NMw01k7SU41wQk1+7Bz1Z1xJ+lZ6C1zwhMax7PdrCdB6/86uJB9uCQnaXY\nzFfzECMIhWc75l53Vo7y75ot4vKFqJhjioS5X6HnpcWcVN6moqIgbi/f3KzJ\nLw5uKpFrCw8Xz+yQdtnt2wmMw+G+fmupykB9SrFeAmuLGGTNayWTPK/rhpK1\n4B/ztURKBXkQeCnS4X8ZJ8kHqu3s0oFvC7bqkSZ8Mxh3l3MNr9F0hoAVk2jp\nkupWkgicsXPOZNuR20XPydW19PbGpK0ib/yN2dtRIVcHbei/9meWuc95Mg33\nMn1iKhMxQw7vprg4VYHaKH2g3JwpbdBFTIJg5ahpCjOGp73jdC3RF+njBR2D\nEChm8GI8ekUG5lVaAS2U1HrdH2KZW6c0kOfld99xQxWjadtza/62GNXIR6rm\nug6R\r\n=hW2G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxtOjUr2j01xzX9IjS0lWJqWdvUXx3Qn/9cbiiN/H2NgIhALKHu50Kfu0O1TDNR+BLXY+Y0yy6zl7Pn0pZTiMlUgIy"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.16_1618984344028_0.9284054491398936"},"_hasShrinkwrap":false},"0.0.17":{"name":"@posprint/command-builder","version":"0.0.17","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"1739ef8e283267b8b07551fa6f36c1ea41f1791e","_id":"@posprint/command-builder@0.0.17","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-k+3qoQHktADERGjV+H93MDEpz1BIW4AWpcunoifGoS2FXQV7mvKdjPEGNoW3Tb5dye7SvQHEdS1NWl2TkgrZLA==","shasum":"58eb02e76c1c8a1a2c2ded84e62679b553ac0415","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.17.tgz","fileCount":25,"unpackedSize":46869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmQRqCRA9TVsSAnZWagAA2wUP/1KcKmsaipNwOpp9Ue1U\nUXrkP6ujJ2NOMtq6FX8LjreD0U6ubg76cFXrtsytgrWqRPZS1qrQl9DyxCtn\nf1r0IhTlOzNoIUIM4bZxr2ddmCfm3vRjIUXnpioEGT/FmmIrFdxE224vqDTX\nSnEM5lass0feaC82zawZFyzRrzZzmiKqyIJ87pK0UXPx6N0ImqiKZDyyaE7E\nJv6D+6LboDhtgSAhrYLcx4QJX5poExndie1oVdRZSuFrc7bThSvLhxn1BeGZ\nUlvCXOR2okW/BpTXB7PMDcc5kT43am581iBVfQ67EhxeuOI645fyr+Njb4BZ\n+bt3GAM8z+TxpZFVHmq3zv4A789tWA3S4m+LYvX6+Rjo0biHKseqoCzOvvbY\npyriPjplIE+J+/FcWjAaFvZd3CRE8rxZ688RUYNQDt2oOfQIf/ICMYP3jC2r\nTAXdZc00TQyd8YaZPtHdresU4WqithpIgNXnmj9j24+634uaEQgB54+IX1Z1\nd2MYk47QjWZkvB8sowVGpHNTswXjGIZt6GR5tAgzeKrJH/Gor2AEhBdTz5CN\nxNJrfmRgNQsZT4H+8xOQFsyjcsMXki2Dgp2NzQl7bU0uGuaOwCIXkn7OBpag\nO2MyKBqUcKd1jyANiyeGV4fizMq0C6rZ503wi2eX/YKR1a1FkT1KWsdZ8wKh\nhG6K\r\n=EOZl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh7Phc3d7yCZfU1n3iq4WxWFjKByQt4ffr0Y1u0kufUAIhAMAREafPL5tn9pK2hNrAlO4GyDVtRRFdVhyoW4y8bFT7"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.17_1620640874290_0.5203694026295329"},"_hasShrinkwrap":false},"0.0.18":{"name":"@posprint/command-builder","version":"0.0.18","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"fd63dcbddddb79f3e69196225bccefe8ac141134","_id":"@posprint/command-builder@0.0.18","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-amZptIAuf/cRXKb9osgK7oDW/VGIRK6BFAByikChnDDX2Q+12joCv1kdqrCKxzoviV72c6i8V/Q0ShDemxhC6g==","shasum":"08acbfd053d60884a2db88fd76aadff45fcc4915","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.18.tgz","fileCount":25,"unpackedSize":47995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmlxHCRA9TVsSAnZWagAAlj4QAKCeY6VVu4iy3133ksC9\ngbBSxdZB5NQG1ETPXyBzJdUJn34WEQWpj9PjVXqqWDB/LcCy768dqBYKiXaA\nwpWAuNTePKb4Zf4kdjhux4xLi89tZMtJTenEQXpIvLNeYZfymB1jM8ijY4KM\n23Y0At/gi9p0UTOWhrzL3QdbDeB9OnYTT16GW6zWANG80rVz0iU/M0YUcp07\n/4r9MWdwwT30aQhlOnNsdVpFbeuW6ooGVA09tsECTNJg1iD/YLwDtGG9Wz2A\nK8/k/EP51nykmO2wzN4xuT97YgQPZsL1HDhR2zK886sty3Xo1VJyCn423y+h\nzcK9iz7Auut5IxwOTw23IiXjLlshrSBTUbyUSBsu7nlM1LbwHiC0t74Wx79Y\nwoUx/ieEdKjb114nz/NV/7VM9IU98MuNWTMxnj3yWa5E7ky7s9kvct0++WjH\nF9uI1GLqDCBGOl4I1qDzCPfIiIbtDVhgSPAhHaibFrYl6jpbwJa4yXkml57I\nR6xgLQK5s/QKSniaOQi4ye2xxmMTM7reFI9HJwQ2SM1cBzeSHErdyF+ry5Qx\n6LTRxqEk6KoQH32j2YhGFrTynVnTYjVNtZNtI7UPp5+yA61V8XrG9afRYD+7\nvVIfSoPWpsLTtl58ZW1mbgvlXLulurvanN2/ATvar/MGxRJ+jvbYRRQ5ZDBY\neKX6\r\n=uFsx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqwJy/bw4sF+R7h+pANk0B3t3yLj2VpDkoLE/laa9DwQIhANo21e5MdwtJv5rsUSBLp3Tx9AbCTi4cjFpqDpgSC+vv"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.18_1620728903159_0.849226703934101"},"_hasShrinkwrap":false},"0.0.19":{"name":"@posprint/command-builder","version":"0.0.19","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"c20776d92b1768dac8f6a603ab605347e2a749ce","_id":"@posprint/command-builder@0.0.19","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-qPDqt6mHJp1BgV8pwwNghc/D4wQo+R16FQPadXOhJH8FKXmq+c4+B4EXdqkLuUPBsnTiP7MThABN0eO21OmVaw==","shasum":"127ac956c109a609e5a7b0987796a07384cd066c","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.19.tgz","fileCount":25,"unpackedSize":48114,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgm3huCRA9TVsSAnZWagAAZfwP/RiXOcBNOeciCOwc4PTi\nfaG/Znp5wop5AlXVaftjml1tUW/tbWz/q2a2V/ET9M7w+dFWh5BSpZuR0uC5\nuGEeHqvmYUBiLGMLxYWFWKUGowBn96AD+iK/1OZdRYyU56YV6wPGH9WO2ipJ\nWefKA43ZR0sFlMzR56axsdaKCjCBSmdNeTRgZxzTfRFPLcftPJGjA7FK9XNW\n4A1gxWtE362CTgtNTfIiiyjJVPEkewlFQDnzUH1yXBAd5cCTgZF9/Dl09ykT\nk+gWgmf2w7Zy0muTV4vpmgXnPm0c5bGJYloARmCVXMTHvrHgeTfKg0Zaxm+i\nmFZ8NCIm86xIipQzPCReDegdDB72sU1HT64kywG1kpq6tfitU/VcXccf4pbK\nnsmBW612d3cDy7K7xib02mWMZwAz2SM1lDdSUH9uXFsKKp6KxnKGI3KiAuFR\n6VKxkfnX00d3cfJ35LnLw8AJa24znbgDxE3DyreYwjbssIqLODLRVZ/BwMBi\nbjSytqbmeSMcGmpk1NlTwf0d8uyQdMUCdlRocRGBVFiFlSywFGyDj1Z/P/u+\nqXQOCwhy1WSwNTOy9n9Owl07WU2Q6oEEqXffblH/lz24Pgpf1r9LqC1G7kAz\ngGOX6P2jZ1OEu2vimhrsnRdhePzPKyOXn0XwMrmtGGupb9NI1ngMaMaKNaXl\nQMz4\r\n=pE0e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrRZ3f3xOtyA+zSc2lmdSRq/O06AjR9r+cIoWEeBtZggIhAMfn73D0DSLmzc6fk9nOH1hfrvxqbY0NHSidbceqwsOC"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.19_1620801645979_0.44635976084034024"},"_hasShrinkwrap":false},"0.0.20":{"name":"@posprint/command-builder","version":"0.0.20","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"d0f1c44d99769ebfae1304ce5f533438d925a0e9","_id":"@posprint/command-builder@0.0.20","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-qPWVxMIph9qtK9pBSohk4gDNwaaO6Mex/5yHDnws/Kposs8l/yfcf2wxhXhSMdXMg/zaHnhN1Fsl0xq9wA+RNw==","shasum":"9a3b84df4bc22660e1fe00b4bd3b424e4b1b46a6","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.20.tgz","fileCount":25,"unpackedSize":48116,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgm3tnCRA9TVsSAnZWagAAudgQAIHoWZVxkomspcbZK4n+\nOg74PhjSeNzY8XkGt5W8W77G8nYzaNyH5Qlqp7CaWAKaDPv35kNQcx/M06oh\ns55SGW8tQA7i/MRiGFjQ+24hGYQeub40uErD1G87g+Dr0aMvLMPwtwIIfvz0\n/BeddyQQFF+JmbRZUUJVbFeHCVC/7GCGArCrIuLvupweNpSMn6V9VRP2Zjuu\nlzsZ+dnlc4hQi93CcIMMgVCuKqjZrtjbZkXOVWB/FLQE1z9bgNRX2uTzBtMd\nrk5/Cb6JjpAtpmAlfl+kjU3RNi7wBLxPoZyKJqR7L+DxJaMKZz1wcu6StkKw\n9pDw3btgmHM3XCkpFqyQ5PnxyjwQhCcN3EmgAThE24ohnHj0dwAMEFmzZixS\nmUxECW+0AcQf988Kd+lRMep7bW22e4ftp0UbieR5hEGsYeqbXZIQjrourKa0\naw/buqsDE0cVINCfx/4Vm0iaAJRwO6Q8Sdeg1SD6ZucbNVxaR0QmjpIr2cNp\nXFZjNO85LrCuvVb4TloQ31GLQIVpHKdqe2jJxPOuWXPRvCLVP7V+JKzL0elK\nXegNPy0CUbfthl7huWJsjxzRJEtCvTl2EmCaaf+n1ZDEssd9NP64xkjyQbfr\nwEDKnDIz80J5RMQ0GrMK4E9rpbAbcpO79pAx+867vvn64e1+ytzp405UGaZF\nRqUz\r\n=NL5W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDuLZtzVJtWf1kj5wFek0pfF8QnY6iQpx4IU9xzrGdoAiEAkLLQvJPaiFbGGzgXgHoOTfYUgkh3XvQZyoqlpOUwzQw="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.20_1620802406814_0.6299785544547727"},"_hasShrinkwrap":false},"0.0.21":{"name":"@posprint/command-builder","version":"0.0.21","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"d0f1c44d99769ebfae1304ce5f533438d925a0e9","_id":"@posprint/command-builder@0.0.21","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-E1JSlxWZvWSNmnp2lrT62RbYt+YLIczb+iMlIv0mU/ipwllFXtOurFDB6jrnvlrxc+WKFdoa8r7ALTXTM+p6kA==","shasum":"f94252e9ee27d16e627bf447e50e3f59a04d5f2b","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.21.tgz","fileCount":25,"unpackedSize":48153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnIjOCRA9TVsSAnZWagAAGzgQAJ57/M2gCkz8NLC6l3Y+\nhEqmaDYboKroonjla73sZ8JenXiIQf0xx4klxmyBYgnRouyiJ0zViedAUgmH\nsOSxBC/UVdx2WFywgWmefH/6ouSGfLO7jU39lHIq8tjZGhaImXJEi4Rbogrz\nLRSnM9aCJiesYJz6K63I5p0pqJiUUG96BHugnchkkRxDBtu44W5fJdAsESOH\nuVuKB8tZbhuVTJuB2SdovyZG3J/bUlQy8DibmJ61aBVC96g0Q+VSZ1z8gZA3\n/yQtVzIA/Y7JGQZensESh7gR1xZDMYBDAGFCtljlOAUf2m+u5VVzB+pmRxqe\nMZVMjv5IF31/fo3BZXZzOJbK0se8aRVdHV5lxlmqjAxyCbgAEZ8lSZKvXIiT\no5S/jmyQoFqWxWUZr06DgX3RFeAz48BF4lGgsTzntXKGDQxN57NlT/zv1UxY\nWdOvVJCkXawXBIoZfFhg+MSlPHEZ06OiNZVEHsugYoBJwcOlrERzNPP1FSmY\nUBQnG27xY0fkruyY/EmQKE3qVi2UXSLNaZRYBj9grqhXbCElahN9XUK+HKTE\nzYzAvkSqZNlJxiijy9VlioF+HeizoR5vaS2s4pSC0GZ7H/f+68V2qhwXd6e4\nxZykseHKDRcwTBuxUnhUu/LnayTkJg5VSinKN+sUMFzSewX9wvYuiAar5tCi\n0YHl\r\n=ghRP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBd14MNmfYh7SFk18WifbKDfhQJz1O2Y3MFq0Oj64TBfAiBBtauZvi3YdM6fg62QXR0U8xXECj6Ky8AQ5eNxjyiWMA=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.21_1620871373625_0.31320455102397426"},"_hasShrinkwrap":false},"0.0.22":{"name":"@posprint/command-builder","version":"0.0.22","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"9ee70778344aa136b808e51c32588a94c6975c5f","_id":"@posprint/command-builder@0.0.22","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-5Ipmntbw+5ko0Vt/rqrPrqZmFreBKclKHlbrq8fVpZQ+TiZVypFZxTcGomvrY+OGSYg1q4bBLPCbILp/z9PbyQ==","shasum":"060706fa353f2e980388a9b22708c6911fb089cd","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.22.tgz","fileCount":25,"unpackedSize":49243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2XFoCRA9TVsSAnZWagAAKocQAJVFS3T3kJ23cIqxQ07Y\n5pOp4sjz6q3fALyM3UaBrHm+fIGHBvPHG98Zgibo4Ij9NYWPNkzFKHrNb7Pc\n1+5Qu8o4oEsDSHXS77IoH3MiXH2nRhs1LaBWqk3GlfjhxAIwPUCNsV6mPAWQ\nwJZ/ELpEpEKd91XARflqoepb1tf6XR/E/N+ezjB3kNWbmo5e/5UOZIDZerz4\nnRiXz+CfYIDPo48yIVWssM0h7llsiv3v1EHgZnfRk7cLDcPGF4xs6VXcSArV\n6nA/poOOvRy91ayu44KKC27CzV0EJ26+BPvYYc/+puLrq7DdiA1R0ENZoOCF\nSg3DqGlV5lTLP6MDTY68VDDxOXtmkQfZaAZ2kaLa8Nrkvjhk2T9y53VIB6Ny\nY3ZG8ClmSw1XW1UY1rrDTvLIMJRS5Dkg1iq5Ye+3nNYwuor0D85FofYVwuK6\nFva3J3uCPG2+w7sx1KXBwMPiOZFFVIGOTaOWmDIG8B9/lDu0OX5cd1TsDavW\n9EfORUSI40U95dsww+3/LmPk7AUVyVPxkKL2J+XkZAaDDLB6vL+XtpNdUHYX\naHuZiZuUhUEvcLTzb22AlGXFr0NSoNP5GOAcR06WLf4xaYKweGzmspH42Gnc\nfhbrZxxGj1hpgRdUiHGtgvjxkJmtD5njs3jTkZB+g1G1ZKmWa5zWPnYY6PGz\nvH3N\r\n=Wv84\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6XrbLbwe+nLqTb2xFhpJTlsKxB9nzkpnupydtY5KzkAiEArACYKKSK1SJAWxUQ7Hx8SlUAfvtscEJGyUfpU2EQvd8="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"gerow","email":"980378410@qq.com"},{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.22_1624863080026_0.8990186861951825"},"_hasShrinkwrap":false},"0.0.23":{"name":"@posprint/command-builder","version":"0.0.23","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"1633d208e1486ed33d61a611f40a9abd12672239","_id":"@posprint/command-builder@0.0.23","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-gd6JuMRe8PzTdF6xnBkFOLzJflNYUftXoojH1C0iwYdvidZgLKEVESA69xCledMURbSeha+rBOnNvhOdpkDAzw==","shasum":"3ab097b54aa4a1e30dc69b7fbce5f716f83ce50f","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.23.tgz","fileCount":25,"unpackedSize":49271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFQ5aCRA9TVsSAnZWagAAlGcP/R8i0Rd1hjTjk6AGcDS4\nBDrnICoAzByw0TqJlCo/2Sl1ZxjjgHKGFFh6kErvjbmscnN8lfMbO4lO2VPw\ns7IimNyJe5BPlBH3+tti9C3Eluuvx3Omktpqeo9Yl/L+IXY5e46Ae6IEq7U4\nA/JSif2iRUip5X3hrYKOcR0P/OHvZmKqJBgQUgocbcKIcqKDimpKMhsYy5hq\nbS0e6GRLOue4+pg2Fn7o7FKDpe8Y805bb2XLmcG0rWruBbQrpgmTcrJuzaGD\ne2QEOaKI44fX38PaF8zamB8q/LBB4jsJSkzDURaszCWUyOsPt3pqNZ5VmTuk\nV2A2MgyYyKoftYT045tw7Bt5xNs+A0zbhER0/89egjDYzXFXKfwrY7zHNhMn\nUkebK/BSCQNq1Cv6VoTPBEg8iUISy0ysxkr6YHOhmbUa3VsKpkgIQx5mtW3U\nLaJDnSZzWnNWjeoWCTeeySjyE4j+qOREMofeyR3BqDTO4IlZ6E/bhnqdIijR\nu1EQk2s0aa710nU79RICLzTOcZG1Om7rUZ68jNXqW/wO/gSPSSwx5LXdhI1e\nxq064ysECxjXO+pMPnXqi0BfRhMUuTB/031Y4KADykFgMsuw/Y/st5xxafHp\ndYhP7chNEdFZpvOoZfzzCVMpZoOUa1ujUxNr8T08X2TXnDWYelfV70cfQbbf\nqj+6\r\n=8Bo4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFfNHgiFpNr72kfw6WQTkYTOeZp/tJWpc1Yz2ql6wnekAiA+m8uY7dBKCurt1X41NofNUIm4AYIqVeW50w7pmqb2vA=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.23_1628769882746_0.7851774367013375"},"_hasShrinkwrap":false},"0.0.24":{"name":"@posprint/command-builder","version":"0.0.24","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"1633d208e1486ed33d61a611f40a9abd12672239","_id":"@posprint/command-builder@0.0.24","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-RWf4qIlvA0eDf4yYCvBE8qzeiFGeUOBSYuts2NKBcBZoMZGrg6bE7HvJbzNTaDnNdEDOQSQwI+et7AKHkeZUAw==","shasum":"68bbf2d7607bf5f61af4e14bc8520316cf036925","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.24.tgz","fileCount":25,"unpackedSize":49277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJdYMCRA9TVsSAnZWagAAlhUQAJqonJ/k2rrPCTJ0QfVL\nyARBBxlKPyEiQaVccO41LKMIYNbjHg5uTsjoTNQP7+Ac189Plu0hbJVMhVwI\nMKOFYhz1kV2oWDYcYE1BNl6PoMZq4XGkayRz1dyeqZRSEGT7n1x5p+d86rEY\n3+o+Yn+nXl9Sks8caJOU60lV/t5vM33hfyoI+Yb49tZIjk99WJRxji184d4p\n0VEcCJrAhfOmGq95RHzeTos6Z3xOrONPJhKZFgH1079rdm85lWEG73NV2+iN\nLPCJuKOdx5gr6J5eCqKfZZAdXLM51KSvGhVxef4fzIpuX4IC+3Gt+1Av7lY1\n/xvZHOVlgBsw+odTCe44Klxk89bWjnkeVtPx8AoebpMvUL0rCU4yLofNgCS+\nhBFhYhUQaTwIKoTTI+qJvmVJqamMw4snuX6f64M/w86hPByZPuJJY/Qn4Mdn\nk0QsinaM8x/ZA7I1zav/7SeodLqo4/ubxhERqDT9LZKQUlCm0KKzyL0z3VHt\nbbP8LBAulhY/jbi6myRtNDd0Ot7R/SFRj041ayN276kHIa3pTP8IWo9pzLiW\nTBZVPKH1RmFSaiCdDSz5qv5su/X9vykQLaTAhVCbEZ0SBvm/3BfMI1Z+5cER\ncmP1rX82NNNiqGpI+G+nNm8Lax3ZUnUX0CBcFqvRmVGnQtH1SQ2qxMTJ+RuM\nhnOi\r\n=0hD4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfPLq2UsNGJZNLu1UhtcGnrvT3IiASSIenCiANYKnTYAiEA+SsZ6FqgH4VcwTJv5aCK08NzBH8DapWtvWMaIAekI+k="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.24_1629869580749_0.4235002358570281"},"_hasShrinkwrap":false},"0.0.25":{"name":"@posprint/command-builder","version":"0.0.25","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"1e78d7b99ed0336dd23e5c6eaa7e3a8644ca7f71","_id":"@posprint/command-builder@0.0.25","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-OceMTzb0j8mWd2COKUvSJsEvecWj0UoonVNHaOZStlFjM+RlcxV7/973Sj6L8l1KqbLp/ipK2uwrgoUbH4K1gg==","shasum":"b143c466c97980dd7ce726a0a2932c54f1c1a168","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.25.tgz","fileCount":25,"unpackedSize":49352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLIwUCRA9TVsSAnZWagAAhQkP/A2vofsXw9pMn0Ke1j7/\nxCaOq2hmi+9aixIHBJ+F3ztMOQcoBPk6BnJtYPtAXT86394JU7flKHVo6hWm\nKQjVYKyu13+ZvX/7bhX3AW0eAs0TAegzX3XoP6QRE1kkQDR77xAJEZm6fuh8\ns0cgWHfCpS5CROnhU5PfDFoV1dWyZrhB/+RasPvPbRgKoUIolGIdQKg6Bp/6\nQXGpoo+aFCQfYzE8vVP45oqkSXcASvE17i5lDsaiK+i80j9haKs8EndEIueX\niCjJE/hwi3To+WGoYST4TEWpvHs8MlUa4M/pM4ThYXQ2YSuU6O6oWzfO1dlD\ntujYXQ3dJcrPtSeTcyEQuiSUaydv9OtOL9lNaKBkcxdyrQsC6XCbJL5AhOG7\nJsUpj24YgrqP06emzx7C+51SWgrN2xxMuV90V0h3ySHo/iSdIjPNyD4WGbYj\nXjQ1OvjQShf8c69hHw02WAaLiopMGy9pHrY3p21rrwHjXS5qAe+8qSqhfbHJ\nEZU9bD65PGD2h5iXnW/2h5MDAwVp7JbuEMYYUUcbBBqXBMJmtDzHQVayw+TF\ncW6hiWgS+hJJwvDKGcOMAcj8gQVU0Sh5KHqGq9J88o0rutB+4uW6Wf6lMstx\n/4qD60jbt5dahFPQHzbphMvGRR3HHN5m5DWgkcKN9g4dkyC05Dn2iaYVSWMN\njzZt\r\n=IBRL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxSZo30dHdFYKvIMjQJt1Vx0qwlzdI3kZ7RPQBagUGpAIhANUlFGFopeZG9LwEFw9Gv47clLWdHtfB4W2lTxSHNieC"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.25_1630309396149_0.021147914438277793"},"_hasShrinkwrap":false},"0.0.26":{"name":"@posprint/command-builder","version":"0.0.26","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"5640339fd1fb1d344300fef1e6865a5291b92b06","_id":"@posprint/command-builder@0.0.26","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-OCF1zu1LcCOMEL13rjULzE8AdGGQ5BDYCqlvnn6Ap4ARIl+tMQbzbTzCo3rIPa9EOZEYyRbIRNIGjNiUeWQaTw==","shasum":"660743eb6b24b2ea463ee18edb349927dcb227a8","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.26.tgz","fileCount":25,"unpackedSize":49262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMMUjCRA9TVsSAnZWagAAkhgP/jlXTyxwLFDnJYNrFUNH\nCdWb+nNx4cw3z7XYnpThrz9JTaiw858aCNaFNWGfMMQKbhjcvWUHQkTc7zSf\nVO4YnsnCgEbYqVeUbiHvV0Md4iNGnDZaCotE6pXSGhgYGDi1IVRxi2PNH8Xf\nsJ9Ix1TLdA/kQRziV40XOl0XgjBU44BcpHwlGYasVe+iu7lk6sGWNoggQR6E\ncqNJgQ5NkfJGu2wr8Vj8myVQf05Nm0vO8NFDG8jvKFRD0A9ZCeQ2ZkiZ6MYA\n6fy8lb7TpSr7vaiPJnEDQ0Cnd0KNU+uaJJLuuQBvpHCtHjpSpXAytTDp2aL9\nGRWPQtwoQgGOyqCHy0lo+dB95II/jCyJRQ/hJ1AeXTHdECr7quuCJBNN1r3P\nF4MyZzAVsp8ZZzV+D5Q7rusQZO16AImBsaKqpeIK55kzr2y8N0BvyecZSR2b\nVXrbxtiykSvltYwEtqW4WPxYJgmqjGy6SXSaNZwUMr115VfDAIvpZq8jR+SW\nMmvSYQBOSy48LmBnD7uGqRvMeoSoLoI+FGVPYiBez/c3IQtV9QI2fbFu5f11\nuLb7L2k+fAr+ZF3gcuzsfo1u+QyKFt00GuyrCu0KbesOqjZ3rQ7UUgOPqJp8\nSqvk6ltgUBdeBwwL1m5oQD/MINGmlOhkvzKx1CZirGwVQzl+3qSCEHedc0Nn\n8XHG\r\n=1VPq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2CzmnK7r2jh7S7bJJ9L++fNhgVr2PhD3lxYIZ0JdshAiAqAuuTOO6drhVnoxPtFdBRpcAzeK/caXc7tsdmzpLWCA=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.26_1630586147250_0.8980234820680622"},"_hasShrinkwrap":false},"0.0.27":{"name":"@posprint/command-builder","version":"0.0.27","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"b9c33a152ec3c8cc47f7ab7b0531cd0235b6a2e5","_id":"@posprint/command-builder@0.0.27","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-t4XAxFENP9K15ttCB5rAPVt/oO1pDO2oazyX7+94kWnV6Kx9IF5GKDqAOHJBeg4UjWueoe9Tj/y7oI8s5qyfFQ==","shasum":"67c2fa914f79286e7adee2dd12e33b266eab2a67","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.27.tgz","fileCount":25,"unpackedSize":49272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDo+YLKS7tkllXLe9TGgiKsVX+yhvMkeqwSpIFRjfTMAiEA/VXtwnD4feomK//E6RfBYDM+n8TuRME3C7TKR7IwMrI="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.27_1632294137968_0.1375047476101503"},"_hasShrinkwrap":false},"0.0.28":{"name":"@posprint/command-builder","version":"0.0.28","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"f15fac0c24db10bf7811c3a2c134caacb321f1a4","_id":"@posprint/command-builder@0.0.28","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-XB3sIJYrISzqBblT++eNjOYrCrFkpeQCvcvrSWIkhPzFLuSytb6SNiwOxHpmbm5ufb9TrTIrLYwOrILLYm3KbA==","shasum":"53872a3dfb31811753c2165ac1b31dd7894886d5","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.28.tgz","fileCount":25,"unpackedSize":49202,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkzMGajEfHAS84s5KcpXavkhunLOwUnIpJ2SZJFFavyAiAGhx0x4YoomNerGukVtNsiahvmszB28h2Y1ypuRk+J1Q=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.28_1632895428180_0.6552344460853272"},"_hasShrinkwrap":false},"0.0.29":{"name":"@posprint/command-builder","version":"0.0.29","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"f15fac0c24db10bf7811c3a2c134caacb321f1a4","_id":"@posprint/command-builder@0.0.29","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-jogP57NaJo2emI2JvBfbi0weD+o20d8Q6ZKi0hnUUyw+iVhudP0LY6whNkk+PXBujjBIgme/LkeiscvVE+12Ig==","shasum":"a0c7235872068b906ce2aae17c371cff720d649d","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.29.tgz","fileCount":25,"unpackedSize":49123,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6IwanjVR1wLBNxRhmazwR0KggaMgtInzuM1wXfflivAiEAiqwH7VxMOJ+Vkctnt4499H31uBzmj8BKoC5oB7JbBSE="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.29_1634787446859_0.041934931737189984"},"_hasShrinkwrap":false},"0.0.30":{"name":"@posprint/command-builder","version":"0.0.30","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"53aa84557394371a898aabac377a5995820c9b93","_id":"@posprint/command-builder@0.0.30","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-eKqNxdr1P6NctiiY/tpVGbHoJGtZ3Ei0kjUCGUU4aprsyu1rZBUBstVac9SNNW7ocbGQtS4w31UeZQ9SiVwxpQ==","shasum":"c5974e1a3258ce91197df6fb0c9d48b4037beed1","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.30.tgz","fileCount":25,"unpackedSize":49397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJiQ2dzmcUaSeliaZehUILIApSkaQ2hkq0zL8tkpuc9AiBPNHXqqhDMEOlb7fwuz6CrMAyXt20qxm8sT8uvZKHKmA=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.30_1634796223683_0.387832559089468"},"_hasShrinkwrap":false},"0.0.31":{"name":"@posprint/command-builder","version":"0.0.31","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"c5b962d57e2d5931ae0ca36b07fe9b84fd35bc9c","_id":"@posprint/command-builder@0.0.31","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-1iXPbveQNJNnCT06RgT61NsGBogfLSl2yrlUBOi9ix3/5xsQU7ay8VJ0IY4DV8hMhMITvUKOB2ChohwdPljiUA==","shasum":"44ae80d83622d62c2b3b0c5e3d1c2a382b4cfda5","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.31.tgz","fileCount":26,"unpackedSize":50818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1+DTCRA9TVsSAnZWagAA7YcP/i+HtqLqRVcFYK7Ux0Kn\nu/SAGa230kkTGpMfr8hj7vh5s1RrtNifqQ8JvZTjqKKyLv+sVTkxxk6womSF\nns2XFVR9A5TxKmRQh3/SZP9h45tQkVuf3FWnl1ku31OucMxL6rUxWYrdvpJn\nIW9bx1bNE4KAQO+trQ3QnUWNBCrM+aOZUwCuEKzQjBWPtefxUrTmdzNg/maa\n367sMkfhzgzduF6AeeBfKSwTGT+p6FqK5PePclzTsH6tVnJ+Cejt7nOmh/x/\nHUKNGfB/Lo0BAiA690BmwQdeKUFah5KyXMOuAg0Ggez4JCHjUZXNePGESGAN\nsilGaU2BbDls4kiWAiTni9XggWEjNqkW4/f0+brpOCc9CumNHk8R3kwT7wOp\ndLODLVJuJ28eZZa+eGXMSXgJAk8DgibIjQwJAC9joKTBrwpQ0Oick1CF/1E9\nA13SCEGDq0Kmn0tXIkvWuVJ6qyM/X8KkTDHaRN9iAL+QkakT5d/MhYIUZvx5\noXJaYAV45EfQD1AcualHdd7aQ7ti0tnwdf/okvr6avpvrqZC/2J4312q/hUg\nhMF6feKPmPqeafDpjOF1OKXKz0jsdgnXCNFUgHm+cl3vFRzED/XSF0ai5TXr\nnoXnhQYnEjYOSFFEImNx1D4QKle1dGDco5J2pkGeDrWsCfdXajFQ+dvdmHXS\nFOgu\r\n=LAj7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu++/FJJTdpKG2bs8816pKFkGmjkGRPBVn5dv5QTDr0AIgArEcCBTxRHQW31yb405BbgqxyWlFia9ONpxKmZKvz+4="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.31_1641537747139_0.9505262420215326"},"_hasShrinkwrap":false},"0.0.32":{"name":"@posprint/command-builder","version":"0.0.32","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"c5b962d57e2d5931ae0ca36b07fe9b84fd35bc9c","_id":"@posprint/command-builder@0.0.32","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-eZv1gLn0eAkIUjij+MCcN8jTUbaEjE+0PLgXSMEVsChwbT2ElsqhKn8y1016akQlqNhCkAWarhElTI6JI9uX6w==","shasum":"af4f302072326a92c849257436f040f7c7c79bf1","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.32.tgz","fileCount":26,"unpackedSize":50905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1/c8CRA9TVsSAnZWagAAIS4P/RufoG6Md//5d9VLhcjN\n37gXCmXbzOn1+Ujopy5dpCfnYJALI8O7q5KSyeD2HnX3Zb7UmXIenLyx+aEA\nDO/UMSjjMnvw72UV0TMg1UbUvjcVDQdTX8SXVAjDmQ56Kp9KfsluLqJi4CDf\nHrc1o23YEU/ZcQb6K0rchru32EXguuh4Bb4JUNC3WWEKwKRFe2BuFHxR9iQG\nCc0v8rPoOGrzplhTGrVxEfv2itNZ9Flp04VGUGv8+UQuD7QQLTlZ+4DekZuy\nss63JDP/E+eLrMsBdW7AKtkFGoiNI2wwQ7gBFvqhEckmUYInVzpdk9956OI4\n2DbaEeLeMqDgXMcSlUrJGYJHrRIcq4EQZweINY+QHL+r/7RD7C6OF8jgvKov\nm5z5CwvO2WqV6EPHfI+OxLvH+KQMyx93FmS0lY7egEXHY7OpukCk9xJFg4Ue\nNt0ILYkOzUfmnOWT1VaFVvRybcKbh9b6YYi6jq1zTIW2vQVVc0LczW6iI2I9\nnVt2QK0a9hBeEjjAmgpsUk7jEn3uxSKWEN55cD6pnD0MHD8c6MErc48HaSQs\nWFOtf76eDFSi1L+pMQqxiZVXM9O88yKrPQXPWnlMoP8hz/JVTscvXU3Tra18\nqE6KRQFlzrBezuefdM38gZhNNirXFgQYQ/ISvB8eXdxLmWutijZxzxRzx9am\nz2wK\r\n=46YW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCm2zAzZXQB4DjatNmTz8siYtWnTlwYbZt34FOm63BjegIgOd023wqDWVu/AXmStNSCJm3NyBbhmkZ6BmE6dOWnIVw="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.32_1641543484121_0.6833277966693059"},"_hasShrinkwrap":false},"0.0.33":{"name":"@posprint/command-builder","version":"0.0.33","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"7a15beb7e8a0679a61e5865b9382e16f2da911c9","_id":"@posprint/command-builder@0.0.33","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-OBNCSxjoW9lhgzDeQGzcfQMVWF+NaZ7KuwTGy5zAFHg8TgXP5YWPWg339PFu6ywoAtlZL+iTz/fFnTrNtIE8pw==","shasum":"82ae598f460fc2955a1e7a734efbe1da300c6ed2","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.33.tgz","fileCount":26,"unpackedSize":51103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCxv5CRA9TVsSAnZWagAAjsEQAKAUWNEYUka3Gd2ETJOp\nNWzFLapFv9fdsUErVCb+WPhxZ/tNgwXv6+MuM3mtWQhQiFe6TMGRZ4QwPdNg\nR3iZ1qyFoVrud4CZtKG5z0741zsuQ+yZot9GpMfX4EWIjDRGLgjlm8nNYK9l\n8BTTHlsfqtDK2rnbHSr5kUjjClO4N/w5dLod2zwXAcQDk2OAAP3z4IH/MDb5\nk2aOUS4YHH6sbvJtxgmmDdK1rE9Pfh6/oOXzNxJ9J/UY6O1FF8k9TyOkK7ny\nH1WjgyXstxQWothU22OMY9Wvn4wChpWTzDku/CB0uc6cwSBrF+HIIukGDXdP\noC2iu+EmjdI+1HIj52Vf8PDP2cdtnOcMol3A2eF3bzKNrHq4EG+efjosehGQ\nEvbTUCdKUtZlrga7cZz7zuYuBaqR2zesiqj9ZxD8YmIB4BlSPOWZXs5WlWjg\nFttELdEpXTUFzZfmAosSVdrF8+WcNleOwmMMoylm1LPLLVN0GGWfzWX5amz1\njQlsnCHxH8+4murv1IKgyWl1xRGf+lYqoZtelA2Btp2qmpB5NcFGPbusxIB8\n6IqEP4YaZIWHby0vn6qmrjClCm7Zp3yAyFWkyKJiDEIfabiRa0/CJIx5+dy/\n4fMnGEF2gdYWkguIO8ihG5mxTMsVEasYynmBVT1Yc9RTm1rFwoeNCqp5zUQs\nR8yS\r\n=uyEI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFsdEtDlguv6PcslL4XyyZysNsyrcAg6xN6Dz3DaZYDQIgb1iS1C5DOxxZ8IikQv3VBSN6EBVtFfY8KSRlb6caiGc="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.33_1644895225147_0.4392040848017338"},"_hasShrinkwrap":false},"0.0.34":{"name":"@posprint/command-builder","version":"0.0.34","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"c6607c1dd0ec24ff71d5993047119f8fc484afab","_id":"@posprint/command-builder@0.0.34","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-8/9mwWPb3PMMA/eC6PH5JBaCRVcVh5CGHufuzz7r0h7EFYXD9uFk2wUw3tj48Ev6RAd6b2svlbjfOtt5yc1/TQ==","shasum":"b569ccf94ee725cc7117030e600648e9e7c99f9f","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.34.tgz","fileCount":26,"unpackedSize":51695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE1BAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8cg/8CjnWJO6GrxH+g7utj9aYRq8oFpkZZJHk8tl4ZUNgKrdQVsyV\r\n+4xL0DTPU7vve2utS5S5alTaiMGVJW5hmds+MKCPw3+ZzBXgcDA9quMeDzHS\r\nY4B1YjKihr6kITaCJvZBKJlV4Znsn/SSX4bOKr3rg/VEIqNP/kKILm+/QCsy\r\npFPFaYGVtusfCW3yyvhVIVFkm1zE4ecYxGvkwIUqBWCR8vo3UAqU1E0P6MIF\r\norxp3m3ZOni6/5puhtdSJycvxTgcx/NO4sA94wiIBTL5nTeYMef9+yUyVO3m\r\nxFKVrrUL4/gIJrAO+jyZhNHf6JK3P3uMQF9bLhfqVlawTD4q7ExQ5nthZ/SU\r\nQCE7wu9HP9Y0CeE95hQ94qttKsW8m80Tc3bhUYTSzTcpW6QitZ443Byf/HNb\r\nObISttKVA4BwunrYiDAsuipoKGdElNnbwqHysTchQrS/XFG4qJfL+YLGFvJy\r\nAQqvUzIc8IjllK+mfbaLNwGc7f0tm09YSz/1WThsRlAckywoKSMwAwBBfO/m\r\n0UsqcPMu/TXZoEjxm78x6NkHsOyGavJ+U6+0hSEArN4xaI0fNinvp4xU/Bmj\r\nIDbEEZ0Mk3vdTR/dpLcPsi3e5HcI91Z2cusqPhpY8vNamNX39Lg/KAtnrtR1\r\nwYhizuIR7ddOkcNAjXcpNg9aLEcPCcDRvwY=\r\n=3+mZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyKIocvshAtxnjtW/mXUXS4TFOFgVnuqOl1OSbMRnregIhALM/nJeYFYxU6b8GTsQPb8wo3cFn8X9RNSYmoxPvLRm1"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.34_1645432896243_0.5536687539745908"},"_hasShrinkwrap":false},"0.0.35":{"name":"@posprint/command-builder","version":"0.0.35","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"732ff407713028749d79e60d5f7542879d2026b8","_id":"@posprint/command-builder@0.0.35","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-pquegVaEEinrGc3FX/1wuNtbNK+8/oyLaIce00fY8lnPbXQPq6tFJzY3L/tZ+pY8nE7SN8YIs0tX8+DHqRTm4Q==","shasum":"8f0124125012c2b26ae9336ad3eb4c1ca837a61f","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.35.tgz","fileCount":26,"unpackedSize":51694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFy3zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOmRAAj5/4heeSEe6NLtYGG10Gn99O+4rEyfFDUJzF3/K08DzS2VC7\r\n93B7tGIGG2VCUQJDkGRqICdUoJy/5FJccyHPxyMW51p4cvRdF5jT0dtQlVse\r\n0w5dgy4StNGIZiMWIK8qztrTPpr0Smr9vQoj5Jl32U9uK8nmq8CpZRo71fnP\r\n3IIWfUH0d4c2WUyPG8y1ecHKAczr/i77d6vdaoK0io5PDl3qxiAHFmxCjMzT\r\nSNQqwcuFmvE00s9bRE3ryPVyflNUDkEsqdP48CuwOJJKKPpB8mXGI+E6RACc\r\n2owr1WmoW667nZUv8ECu0+2VBPzkGdAqXeNJ91MUdxwJ+Qd51R0ogNTHw8cF\r\nGnRBKhTi1bxyff/F7sLQowbPlAkTURtN/knAuP3Akt9lpG1v7ofjdJbjq+7t\r\n5CJRe/CESlq3pM0OvKHAT1woxV1lVnYd+iNu/ZyN/81bUXcRDpkvGBkLecgX\r\nOkLuK5hGCO7CZzZqGwqD7r97x91+eD54h08UgkWIDztWXD6sdR0cN1LtgnKj\r\nKZI9I/sQnWlsQcayBHttCsCG5nHK19VBRnXby8E0fDAMM2m3iJ/Gl8H2VQ3p\r\nqyvrV4MoVED3yTftCW5pV/YU5HD+npIXQD6nkGzS6CCKAp9UY3/PpuS5+blZ\r\nWRdoRJnQGR4bLQd7wK0LumS+yjzC/6JHz14=\r\n=vos+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTj+746PvvnjPGPeAz6kom4f1a4sEYUTNNTAvU3bMfhAiEAxtouh0AefPqCI8/zWSpW+mfwWiEOb5Z4l2BP5ZwScbg="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.35_1645686259356_0.631651269051126"},"_hasShrinkwrap":false},"0.0.36":{"name":"@posprint/command-builder","version":"0.0.36","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"30b764dd2b05181a530fc2dbe1b98738120a2ef4","_id":"@posprint/command-builder@0.0.36","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-FfKIxu7kxb2M63e5wJRucj8mhVNivZQv/SzbkMWEnyDi7aMeP4FWOH8CfjQlLCehRjS+9+vGGRE4f/RI7SzMtQ==","shasum":"b13e4933f9ba8043f40f0ea36b77bd76148f03d2","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.36.tgz","fileCount":26,"unpackedSize":51794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMuNTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpjmw/9FmBnLQa/efnbOGfQ9I2OT6WGLBBdR9JOhM9McYPRfWB8rT5s\r\nVGC5JiFgHb/XVruiQhP+F5r4U/1LDPDLNY7TCdb5JKDN0PRYGKD8L1pLLPO6\r\nM+rBW4FQT1ZDnWX/Y4o2P0UY1VCMPzOREBPWi57k1N5/OA2Mm0Kz0ngfGZJn\r\nsdHgdRx3W4cP2LaSILzfwf9o0ROUuuvwsiNJCQhLUj/D4HIGhnQdNEKkdtmd\r\nXH6jG4G/fGJ39L9GQSGoEj8AzZgYmRYJkEkm5g84XJDZGuARzFtHKgouHybS\r\nZT26SQl9voLJySDpk2TJ1lgC+d968mufv6NkgZ4g5th4yGOovw9BA/7OVLLH\r\n9wrNvidm7b/cJbG4MNppZrr7oXpTlSUPT1UKTcH0HAi0kaiBe7oxK+k4cJzR\r\n+CWsWXcZtV4ysNw0V1jX9Krvh3n39wm3cB4GNS8ekBNhUZibq7NEnGFaYs5i\r\nFlJYdmnqj8WttvkAkmy5ufF240Ff54zMietT+FtvX24J5YIzXpWbPjFaYqpq\r\nrhqAlng3tsMfwmRZ5LPPu1PIpZ7BdG7HUwulioy+FC0+E+lHHVeU7kTxZFi/\r\nJJW8RDeRNHsc/s3Lfjg7fgdme7pBtuFMwq85ETd0T4avG8gkPXpIlQW9HWOk\r\nl8a8q/6aSk3mjTW7rlSLIC8cCZn1DINsWU8=\r\n=McYw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQNAl9fQdQhNH9gcGSSMAk0LEvGIhwMFW/wZjALCS0BQIhAK3GLjS8HOI2fmMggm/xKG/Ro8nPK/AYxMzVLaJ4lEG1"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.36_1647502163509_0.5672192653694608"},"_hasShrinkwrap":false},"0.0.37":{"name":"@posprint/command-builder","version":"0.0.37","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"30b764dd2b05181a530fc2dbe1b98738120a2ef4","_id":"@posprint/command-builder@0.0.37","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-R52pvvmZMAqiWxNI2GiJzf0sP5B0Mol8MbbkaTHV7Q1uDCydrAn2bj3lRxSRV4Gg+J6EXNNyOLtTS+YS2JpQVQ==","shasum":"6ef7ff77449975cd897e3ae7ad6a1c80c91dbc5b","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.37.tgz","fileCount":26,"unpackedSize":52239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4iP55PT1BXEYo96PsKkmndhc0s3Cs7Wq/xVv9wZQp1AiEA+DNE+KEBXRPzh4ejRHVx3ajrSM1xxLtzgx8OQI5jEho="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXSs7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolEA/+J10woG4ZQ7m8oPhnHnieLDYBTrc54BzWVHyLEjhCvS3S9YFI\r\nNDTElzEaFm0CKcFrDDoQ8RTqoXpJBCDpJP//TDaeBbw+TXa/aOuM0u2dCzlo\r\nop1fEPMq7VWz/jIWG78cC58Xln3jsnMTvpIWZGAmdrc/N7GSicSvJXHJZAeE\r\nq3z7OPzKcZSlR+Fh3bW0SVccKPpSezG/anDkPk9Q5viyn/k4Ojej+7VGB79O\r\n8EVQBwv81L6PMvyHxZl5zOaS1Luwhi44z5oVE01w5C+DFYI7bfT4ACJewN/M\r\nSB5g70/zI/lJxxmQULq4ZPJjseVhYG28U2vr1T7VzkSxWSau/VJg6baqbDRu\r\nMzx/CrkzSO6JHc5YmiI9zKcl/54oFJN7y2gETipsYT6ljtEkEdcdT2Mn0Fjz\r\nlGDE7LxYaaBf59tLIBogAa+FYWrwdlzmGKwumX+mKm7VpD2jIRoYtl+XuT06\r\nX2WJe6BOSDKJVeT6wxmwYoqCiV437qOKlbCvbJ3zk5nRX6I+KHfvD2zomAuV\r\nvrS/czisimMfA/UBstK6agCmeN362TfRev8Qr6XrczGCc033cc+wyC9nC9JX\r\n1n75iqEx7w72/KRJKqTqEOUPyq4IQeMRbWZV/7BoSEYwAvDVwYKvU5X+Ust1\r\ndSlhSZT9VFrScw1ptkDAgZaThcI6Vx1YN3E=\r\n=93wu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.37_1650273082940_0.9267103971042052"},"_hasShrinkwrap":false},"0.0.38":{"name":"@posprint/command-builder","version":"0.0.38","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"3e313edc73d73adb79f266400c121134d5df2a62","_id":"@posprint/command-builder@0.0.38","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-4p1/F2rsYBDJaksubEfYSTPuFy3gynzggx25x+HtC3+0hDiqaTXt2UKkfRAqNBTU58m3e4YA1fbz7b+eTHEdtg==","shasum":"9b911e8dd7d0bee1d13d47e03dc6aeee2d2dc877","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.38.tgz","fileCount":26,"unpackedSize":52744,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHg9mLwdwlGCAzPRz95iibh+WHBPCDtxTQN4B30mP+SJAiAWlR1l9JnCpApFBIrO22DfNK5tM1lFPuHz2867IBsAPA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZ6zKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5yA/9FDKY0aIkuJE7Kfs44EfzOvMFLHFWrfGQoiDSdXR5YyBlGCk4\r\nYWxqsyTGjM6PFiUvSl16VRuVQ+VFvuM8b5YK8g5gTN/FndGjMbtV2f3gAouv\r\n8jrcLckFN9LcfIqrFuog0+4IrVXi36Vk6IqQzPe/XsqQX9V0DyDXlLWVoAx1\r\nWEfx1M5t15d6mryY82HG0JOt/KzKr28dpWbRW9iIELNjpL+hO/wVOkgIgwXL\r\nxS0lCNqCQ++doZhaSppafBkbrZjoHkcKUCgvHsuKrto+rJzn4icagZ+74/bP\r\npl+ChVgBkwGSOG7+i+ZjItoWtRmKDjNIzSPmODod4h6lijpo2VDHnqfuKvYG\r\ncFWaKuQsSek5CpMM+xJ7ruhFTj9f9Y5VwcFXMTaoRjddZv+uKfNqOzc3qPhk\r\nGLAlQ2DEBZPssQKgB3T7QxF4bpryBdxXuwyJIVgO39jTrlLqjg/USIkS1XSl\r\nDO0Wdxt6lvQfXUE623yQh3MBBY4GTysrlpUNm/caQLM/UIMCx6Jx4kgD5iL5\r\nHQZ7pSSVbikVVI07fjCqZ4xgS3VonyoYc3W483zEBmvre5Os51f4pcYzMVnj\r\nXmJYrdZhM1NtVbxXs2HxyViNXMO1+N7Xb4JFjZ5TY4wfBCxAsb/S1oS/MiG3\r\nTfTW25evwvXzww3eqZjceKPZC7X/ebuTcRc=\r\n=oNQT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.38_1650961610718_0.7917942046648563"},"_hasShrinkwrap":false},"0.0.39":{"name":"@posprint/command-builder","version":"0.0.39","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"3e313edc73d73adb79f266400c121134d5df2a62","_id":"@posprint/command-builder@0.0.39","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Q+yKMps94VjZyGYnFySPRKklOzk9nhprgkIS6Ue1XaigJGh6RRc4zTvyWI1yfeqXg4prUH6pmuKozI30cdRWbw==","shasum":"12fb530047a433aecc3d1daf6df6e42940dde669","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.39.tgz","fileCount":26,"unpackedSize":52754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDW9L5FNL4Fqe/wm0mfBdjjveaJj4cOzcpGpNkeK3iYNgIgd4uOXeN9mOTzIjn3VBXsTco1i4pvQMdEBC0gpIY22wc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiffSaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6FhAAmBgeinra+qT4V5Zosy5nbiqbjTKB77yKmZO24gP2U2HvvynB\r\nPxt5VhsdQdJmyEUKj+7EZjnjgO690YKrSSS8DgUDPFV4xE4XqXV2MpWfw9j3\r\neNx8ITdl1IzMaJviz25pZjMrf6WVxhRS0DOLEEFZ/kfaxMTkqPdAfc9AUzgE\r\nIUeRdZvzk3v/xVNU3bGQxwZPxeHt9pPK99UpR2s1uowoPwU6y6/7zH2brekF\r\nKgYr0nIdmWs/yj1KRZiQLCpSRB5tC/bZtwtl6y1NGQ7uSQhlYycVVyxnhu9O\r\n6NmU9WyrJGoYjl0Y/0JjVlsQR5cI0o54N4po7KzlShBj77fJmIABizyrnKra\r\nE+N7KX6KSLETlcS/qczEWgNVa+TmdL8RPEL6elSOBiRkIgv7LLOZ//IX8HU0\r\ni3oArn7sn4GxPBKyn/6aKR6esJUfoyhR0CsnOevXmTXrhi4mc0Qam3I09VRA\r\nEATA+UAPPl2iXt3tfi8SQrOKGw0AmrXMIbog6jEzJLKJy2YMqkVVpBF/Iwgz\r\nVv9zp0a12xI3N8ZUWat/RVcURENZgzvKSGo81n1pD5pYH2HKwd6r45uloytU\r\nFla4CuCC1SpDUOEU6pIW5Hb0RI6M2rotDllEPeBwesNZJ0kixof5u0pIOjCD\r\nJEekPOOWNAaaMFbJPcPNuVvGEGn1AJzXjj0=\r\n=2GKQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.39_1652421785994_0.2562932067880752"},"_hasShrinkwrap":false},"0.0.40":{"name":"@posprint/command-builder","version":"0.0.40","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"cb538cb53bf0f248dbf821d1377f1507c1effbee","_id":"@posprint/command-builder@0.0.40","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-UCXmkK/6277Nr8LHj5cJOC7IQFU0Od0QyiIpm8A16dNJeAVHmCQpgcwqyWMlp2f608qJqjR0A2AWZ+tuE5bYew==","shasum":"bf46d39e827d0dcde291ef154dd0bdf907bcb09f","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.40.tgz","fileCount":26,"unpackedSize":52915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP769R838X8LD0lFodTP0uaa8DF8qxsPNiNKEunpZkNwIgV8LNK1bOAxcW80ktPLQ417sLleGO4b5BsNwdI8kIP+U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisq8aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTtg//T9pGsFvFJlolq1HFwRAJL1jZdtlW8tbEzK7xyyejOgfoqQy3\r\nGKHUdlKV5bGdizohJho+OFa95YB4fhkDDIBDH31/FbulAcUA3owg1V3NkGWG\r\nfR3uBnFHKR9A4ZJLW0dqQ4Lk/O3YvRuAkg0FPbLEbmvDAB+fyTL5UvnbtK7v\r\n2bQslQdgc5c2IfdV9SZeYLw2Oa3upvFYPNTpDqwY+tms91+emRV4g3cB9uy8\r\nJPX39sEOZcN0e36/mC94GEdO6Qm6jivzJfA9FTTGUYw4GcqsZh4pcF32XQ9B\r\np3HANR9z3xIf3j++3xdGHf8ua3PwJtyqp1qWqcyb5X/3JJYn71mH2nKLUg+w\r\ndY+P33wl0ANs8/4J+JSEsQWZ0hPj7FV02huhhujo7Ri6KqQVH31BoKuUFVG+\r\niUuXkoYfiX0cTDs5D06dMMbWWFZjliJZ5hNQT/nLRcjGWxrloadbfo6mnvr2\r\nc1Y3yRUHefQHf8mE3Ohq0OC+cUCYTBc84ffDHFkHfQCzuuOVXYbUxeatypKq\r\nCq+RiF9O6suqLq0q9VAOmfkMNH3BR+aeuH0W5Jff8MbtdLfRZouDzH/WmHz7\r\nM6QdLG8VJM1oxUA4nYAah9y6Q0bk1+Mwc/pkzq7hjFs86IrjLnOKrSPDdNms\r\nvaxrEpUgP0f738Sou/dGYD1f1q2wXI167dY=\r\n=Laez\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.40_1655877402014_0.24204038709118736"},"_hasShrinkwrap":false},"0.0.41":{"name":"@posprint/command-builder","version":"0.0.41","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4","word-width":"1.0.1","word-wrap":"1.2.3"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"cb538cb53bf0f248dbf821d1377f1507c1effbee","_id":"@posprint/command-builder@0.0.41","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-om0B8duv7vsQZYMoSXwcyiHYGq/ktD2VWWoS18vhXuLnEsEu6nP/glyB6T8/ajSeSQtbt29ED5bq5hFLald2bw==","shasum":"b0250345aaa19bcab3ee3e1f492f7054022bd70d","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.41.tgz","fileCount":26,"unpackedSize":53095,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPUiVxROM+jOJFJ6FfGrAL1JeE6qxKK1/scr9HV935BwIgXfvkIylV8TvVhVKWexGT9U3ZFjKGY+a3akQAxqgFBVw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuSZGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcMA//Uij16SjMmkNV5tsYLTmeyPJIByW1wiZVhlJvGlKNMUwuHBOR\r\ndxQZtTaQFDnRBzsrM2P31YkYZwSkyIbBt7p6gpRciYtr6bD521lDTE2781Uo\r\nXyUQuGt9rn1s8YvVqXah4Uoz0uwbQy7+ac+k96FwjTc7hI7k9lkmM+hmCWdD\r\nmiUkgZVGbOCROVzxO/QKlW74Xh8NJsNozUbmz/e9AfxdHnTng5SqhZeU+Znc\r\nP2txIQnz6wmDnxUURDOrdCZfNG4LO6EUDFEwiCHfhbrqMiPphuNx8AW0XWb1\r\nh3M4PYfHqTGwB/6E6M3scd+33TEgkF8c0n7lxZ22LBkJwi5pcDA7UK+gOf5m\r\nOBJy0wQ0goBQEdLjc6x3tOR7LB01tQk9nuaeGtjrXYCTsDxxhudO4elTRYpx\r\njRK8NBfcwdgDfdLXvhSsYxobAQXcaX1S3noxuFAQwpD9TGOHofRRPUk4Kqsk\r\nmIOv8kveeg+qOdTkRuo5MjYrLVq07FOZmRK3Id495sO85v3mEKtwVqeBGT4T\r\nSD4S3vAVgzaE17FwCcWnurwFOiessIpEGFiEB+1PjymR+XTyMMTkUqe9C2Yq\r\nJSz7EDL2YyoSch18v58wyqB6eds3dUNUG0rFeNdztMAMGPDt9WMLnrlCy1B7\r\nEB5yO51fa2+H7XQuIKcSV+UclP1r1sBupqw=\r\n=3cir\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.41_1656301126301_0.42859822246403967"},"_hasShrinkwrap":false},"0.0.42":{"name":"@posprint/command-builder","version":"0.0.42","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"a8163fafd730988dc2b18a145b2a992b2f7d3ff8","_id":"@posprint/command-builder@0.0.42","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-EKPS8wlSKomON7PNDNSFkw1diEgIBxZhZ7d23M66+cZ2W0NV18OBybFPkuxc0kINidSeYfulx9tupw4w19sIjw==","shasum":"cea1081c3c526e04cb7c7c46a940b03586d13308","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.42.tgz","fileCount":26,"unpackedSize":52944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoycRo02cdH2/t08X0T3wU157INX+v4QQ61zNV2GywMwIhAOotaL9EMVW+4zfHjDh+XbN9rbDIGGQAdIT7bJzLCbRF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6MchACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+eg//R5bdulkg8seDnt639RfVBPqBCgiSDCT9g/bIu3SvombWniJk\r\njmkWQs7NCiq4yXcDvIrhlt+VaSrbH/fF5/Auq/NjGb8690vDV6i1y7qGi8is\r\nMyMeLqkZkTyeVIRt2Hu7DqAyWVRf9c1mSXujXVAb5J5BilZnYIMsK3JzoMxG\r\nk1GJ5rLP6IyMSgxLJIAYpc3hCxNVg7ajMypivLpfXKXyEmKgV6EojBUWma0V\r\nx+ipSpohrMuqMBVgp1lP6wMpnResM2Tw3IxDtrz/FwZhwCoaQGn8V33fbR88\r\n1ZKTkLaaSB+bP5ub/V2AByzxx/RhyQN9aCfksvIsD6MqsA4x9AaMl8hEndKT\r\noFgaG46KH45sBHYxh2B+pB6Iq2AabfdtvI9HRpMFbg0UmWedIPuJw34tAX+H\r\nojY0qDmI6o2LobhEAfeek8ZuJlXOYTRkM8ZuXozuMabNvSTvaFgF0mH1Hxma\r\n3ikk/k7AMu8THIMUuxZDLvzvpQtzz2ykKzeIaOoWI8monCVScKGRFs0K7h5O\r\nb0obpyYGwhkUozMmlQdERb66qniJiGJEj6Dt/wYFdE1jtf7CnqBaQ7+hHDpZ\r\nXEam7kJ6pU1QdT0wLV6SEZVWytMY2tnNSuUj+tpJCJ1hG/M4f6Tg2cSp01rM\r\nG3Ztfjp0pYhiAD4RC+ptzKIhF7UJjpS6ceQ=\r\n=6bF5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.42_1659422497275_0.5736529100586916"},"_hasShrinkwrap":false},"0.0.43":{"name":"@posprint/command-builder","version":"0.0.43","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"48dafed9c3f058984c89516b0bcdc797945f3ac2","_id":"@posprint/command-builder@0.0.43","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-R9nKhfxB92Mulz5dHZU8uzHZC19sROQ0kOLUUib1UPOfJBRcVHDEeYyLt9H8inTp+wwVjy1a/ZIPgK5QZ9eFjA==","shasum":"13c515bfb87f96fe015cc30d2eeead039649ab7e","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43.tgz","fileCount":26,"unpackedSize":52956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEP0JoyWQ92pDMYsseFi39pr/wyuO9n1Vqw8mY8XkokSAiEA5dt6Ti9jHAxwjPNBSt1KtLYSqZM6aHRv62t/E9/6Sgc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEEujACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs8w//dYhi97XA92LozVL2Xwasac7Xsa2xi6iS28JG9nOMq4icD/Qz\r\nUO6diMbwJF5S+1i75S2ZWIOea6guGPWiGfDTeREdj0a305/wn18M/iJE4EEi\r\ndesFwrbczNITKk42AizeYSIQqpZSlQvKFwUyzA2G0KujSKAQgdsi1aV/QTLL\r\nENkoFZ7y5T0iK/UhsgDwAtHV7ekxuHalJyoaraw+qbiQYzP1xCNAOx+TluxC\r\npQevupbHTOrxKAblVLy/Y7HYytzuJyKZogpDo3W7RFB3q7nBQnD/H6nck+Hn\r\nY1OTOZ/YvZ8dTYniTYisAgxbk6plvSdGCIX7CQWE+N3Mvj67xDhHM0fk7PLx\r\n3svbm8en2W5y+c0sAnDsOgruEQsgJ88dVWWLlWsT1vmXAXfh6tmT0MLp8OvE\r\n1ClgqGIVk8uBK+YWB/eU7/fw41lRZICS6qcWIpR48efryhNtDmbsM8fkgSnG\r\nchcF91sEiGFMpYBtOwlDp3IJ6bQ5lyvkJUW5AzEXF5APoq/gJCAPsiLB6C3e\r\nJja/Zfjv/jVi3CktaQwSL0IFxFSCjyaxUHzmJxt5goY7HVzaQ2ewhxJEeTiH\r\n+Pf8EJbLrCz35BnnnmC8/OWL8OA8hlLShVP14p4IS1KeDR3/0X5ULFFwg3Cw\r\nGn3MGbXzuTtNFHWLMbsoUpNwMAEKjNq+hBc=\r\n=bNVx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43_1662012323749_0.6663132571998276"},"_hasShrinkwrap":false},"0.0.43-beta.0":{"name":"@posprint/command-builder","version":"0.0.43-beta.0","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"ebeff67516e90aac43b05d24c505479f34784390","_id":"@posprint/command-builder@0.0.43-beta.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-UvzDZTjCzwX35hljlgG/ERKF47RoIKlU2Wpq5VQYlNvb9Je9dmNflo1KzAQFDc9m1BQj4B3WF+bf5yEYIfwfOg==","shasum":"a31de988b672a3c1639c61ea7d52c0a66777bb0e","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.0.tgz","fileCount":26,"unpackedSize":54839,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYk+1NvQKbQyPNECDvs95v5ATkLG/qMbxW2v+CyAx2wAiAEuelcLZ3oOZajydJU7JS3gyp1vSLL6nMW7tgX1GAd0g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbKWCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsOA//cyiabUtoAP0kWKR4Mniycfbg9C0THeiNHHjC4HvPT+r45dVh\r\nUEZmx1B3UM/wZBJQpDiugNyJpEB5pxyZgLDrNSR472P+kE4S1pB+yOZzij7S\r\nk3+j5XtnmunobPp9R1G6ieG8InOyWGIXERtMKQv+8ZB4csUaUmDCNSxGS03S\r\n4YjmuvjLCcZF5c7XPtt8t4T+zPOhYcq/YsdJZ/bFcwnMdbh1xeTTpfuM2S8h\r\nSUgcB1iGbSY2dNipeL9dRisqYvfZto/zlDh5B2NX0JbmwVo3LUP/2gxk0r0d\r\nKTv00X/PDhGEYhYJBP5syMqIAOLtWkH4x6ere/4xPyUbduKDGm3tspQKeu1+\r\n2T7VcHWfutRoyUpC5C+fa2ayepuAAyQASx2w0XmgCfBEOPH67YUof2N9KF7/\r\neO9gP+mS2xbrsXgsRgahOnAtg05KG04qxEezS8ILdl64wjreRt+Pt2T3abcz\r\n2QWnj+wC9Yc2MKFcctR9TL4G2H7bG7Z5T+8YW43i9hjbuyavDSvIjSOp8BhF\r\nBu4R5dQ0yD+HK6aTbNF0YGn+S8eRFRgwX8sBwGSs5uU4Gjw7O9mrXI7/qY5Z\r\nGUm6z/+5/Euer3/FoxcrYuL6nKLPKRTUtY3C9mXUhK2cocxQg9XcErCS2mge\r\nWxpDisXQmCLcLMyB860G1iazcpUxaa0LVvE=\r\n=621d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.0_1668064641990_0.43158689320442845"},"_hasShrinkwrap":false},"0.0.43-beta.1":{"name":"@posprint/command-builder","version":"0.0.43-beta.1","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"2d2c6f7e892e17abaeea9db0e44993f567cb2a3d","_id":"@posprint/command-builder@0.0.43-beta.1","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-WII6hNTLKfTTwuW1huSpH26j7WGLHJsY90g0RPH0KIi+ZvMplODDToXxp6LhRYaaeAEn77X9NjUbzc4Pghm8QA==","shasum":"9c714d9f8582176c289988197bc403d2cea03241","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.1.tgz","fileCount":26,"unpackedSize":54839,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsjZdhI3TegWrBp6LmpUIX3WyzaY6vQBWSn+v20sz2aAiEAnbYt3UkH/2RoVOa6pVEtSVbn1B0ODnDEHlGzIn3zw+o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhdTFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5ww/+KE6nPA4ycoRhfIW+evivg+iLPVKWmsjNcRYKpUe8gNFmh8XZ\r\nqum5tS+aacebsnfyE60BTw8mwxj2BoaJcAQnMqq8adl8X7Vvcm1ZtOZ+akYn\r\n6L4d5cP+ozsn6bPY4l4htQlIvCZURsPuC6kqjaIxSpLpR/VPc/vWlQEMgPEE\r\nfVddIZUbLjYtn7gF+4+T8thfY6hzVde8qNaI0XDGlFOnRe+XRj7FPi/WIGJi\r\nXcyV5hoyJGvae5T9oFn2zbq6IFXkSgSij+btNmTzt/cuV0zMb4DfXq5mW7lC\r\ne7RbaMuYkiFG+BUjx4ZEKuTCnvjghOeAN6Cr2vCyoh+ErVtOSt5qd9bVJG2V\r\n8Ua979fgioww/SpoVMvPYDpMHrqMNLczkJ2oPwSimhUWGkGWsz/PJ/Dnq7CB\r\nkvb/SdIt1B9nUks2PP+eP4W8yXl5tTX0TJzWfbZbPpcclRwaiXBEBr33g1s2\r\neS0nHq9kHarP7nChL0IO4hdGh+ElnyZvWN3Dgtee1xbzldeIkL00f5Vw9sOc\r\nwoUvvE1iR00PlP12swM+DHbpIU2hpgbn6Ok1GQPZU3fwnrhU2oK2vifMx6aK\r\nB2cUku26NJXRTpRCQ7q0W9GkFmKHGFTLa45piJhEPvMIPt9gD/NdFpMPe2dp\r\nRNfoGwtvaf3wH9Yv4GH7U+KuouJVslFxRfw=\r\n=non9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.1_1669715141549_0.7241620618656519"},"_hasShrinkwrap":false},"0.0.43-beta.2":{"name":"@posprint/command-builder","version":"0.0.43-beta.2","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"ed2ac5c55cca94cada7dbc033cc6856c26ee5390","_id":"@posprint/command-builder@0.0.43-beta.2","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-G5zbnDMizJ+Kd0/6z5HrPs0p6MC4o//S9a4EXCOxCQRTU1HOPGqtMSKEuncJ3eQdo2cTm9WmNFdn89ozWe2iYA==","shasum":"ba4109926c95132f999b8d3313c9c095d3403be7","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.2.tgz","fileCount":27,"unpackedSize":59623,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjTx4ZyGkgT7xFrk8QYMKU4PXgBGoLv3WUb6bkke169QIhALDb+dZLq8I2tF6lyuzgqFtGC+cJXS6CAxovD9T97zdm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj40l1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5Pg//cM6vUq2wkNzIZiPTXPKWL2Gec/7DoOYkcwg893+leq2xWw0A\r\nIPk4cVUT7w4izZ4BtPlwaOu1n0AMN4bdd07muJSBP1e9USpN+xRxLAnWYH6A\r\nUZsj++u/rXZxot9BLg0u6SeidKa3aBqXTnuFlrHk4GdAFFIyZ4ZOfapRQMB6\r\nrTezlalHkehFPGxUAaLGY/sMNgKfTk0YNG7+h31IF1SxpLo7fz2GpYeKFrRU\r\nJt1wRtde/pWjXDO8TTWGQvk9CF2fohwpTVuNF8Z8xvdWjrBu5lrjUCq+Baja\r\nCMMtBEmjPO3RwF4yipQrXQcyl3jbBz9Qs3kS9/hIsFe7/HnwDeIzSBNlHk6g\r\nmRwvogwDCdNwg0k+6aH3zhxTrEAk6JdlvZnL5Cy9Mtq3tgsRe0MTtx/R5SW4\r\naIBAvkcdgx75t6GCY+qxUNYvcujgaBbeNQ904o4X1yULDXqQl9UNyQtuvXif\r\n7x/zoNH/Qh2LxnbojJPyRREnvNd/5BPpOupcYTxrM+QM/X/LJu1hkGdJhYX7\r\np6pdflXfL6+dhRoEijqu1zIevmBOAl1YCiV9jedcgn90IDoa8oYNTJ6W0U0e\r\nHlWhczOMkjKOdIjBWfeGYk8gYiBX5vS/dZ7bWSlFi+3amHVazby1y4Yp1F6K\r\nzz5G5xrEpWiBVcNuc6UNR6gP0IJwfBWPQt4=\r\n=eW/3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.2_1675839860916_0.6479553621336169"},"_hasShrinkwrap":false},"0.0.43-beta.3":{"name":"@posprint/command-builder","version":"0.0.43-beta.3","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"ed2ac5c55cca94cada7dbc033cc6856c26ee5390","_id":"@posprint/command-builder@0.0.43-beta.3","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-RbmOMUqWqUtmtGCS8agh0DV3FL7OYoQfNSJDP2DKDnjWrPu4IGwm6oXCus+ICMxVyXaKX8LAUccR77dcO4S2Cw==","shasum":"38404cd77c4525ac67068adedb57fb6b37a5a0d5","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.3.tgz","fileCount":27,"unpackedSize":59618,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChjGho2W/2DrX7FSVwIiA4AyXMpk2GXEX9PH1Td+SDuAIhAMfcbSZT/0xfDzoDjFZtd+S8WvjulbikMhAhot+WY9LI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9Yu5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6+A//VgCWAOJ+DdhtZ5sOP5tDsG3zrSTUkSDrQJ+6DzXN9L+2BW0Z\r\nGUF0axUDMxOcOwgl9R2JdcbVhWgor9ve0oHYmSoz3DE+rws5TL52lo7aGuew\r\nW/cHfk4uMntpC/onifWnSFh0ZOD9vo3qfqq3gEen4hQ+CaQX1lR+FPIiQhCm\r\neaJEaXTEz2Te+tTkbammN984GD254T7Za1ol7Ejw6dWNzd+Nd2NgnbFJRVel\r\nm46bU8v5aTvul4jbB9Y4gnXIroHwfsyhP2766hZ9SwMLT8W8XUgAPFfSwn4l\r\nv15OUMQ59ra13OWE8NowsUMeaWlTJHz5tFrrsLuO8pGU87Bp/Xb1jm1xLPc1\r\n22dnwmLa+FM1JS8rgA82aqzYGgHUbTjtQx1X9pTpa/cfPmC7usrVycpWREwY\r\nFXJR5AUFpHCHuT0Amm543L+HX0DRMCZYW+CRBlrAmCqoJp84VwiBZ9tltW82\r\nWDcgrecKZGZJ+/lr9+jAX/p7tzKG8vOrn01rauCr4h7ETzBsYrX7kUPpLyL+\r\n64EV+NupxrlTmzutx5OWpSXwJoOcFzQwtqQyEZabJNVdBsgOj2ee/Ne6LYHi\r\nU33zDlCtbF7usl6EPrAG6AmtWMsUMQDefXtZ/5TjZV9T9XmVphI5jpOOggzN\r\nmkxV+g9KHYyY0utd6SYLgKZlNKYf8rndJNA=\r\n=4Z26\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.3_1677036473578_0.41454604289993835"},"_hasShrinkwrap":false},"0.0.43-beta.4":{"name":"@posprint/command-builder","version":"0.0.43-beta.4","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"8a05c8dd6d6cde6dc36c8b30b3e1a28d1de9b3ea","_id":"@posprint/command-builder@0.0.43-beta.4","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-3mp6enKJ1UL7kDsTvRdRgiQXxrwIv9VPSNdG65Su7NMCOpF83wlCoFavYLhbosxQ3fRCTDtUomWfxju+uvHrlA==","shasum":"a06dfba3c8f7d65336dd743ecbc3911ce536e3ba","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.4.tgz","fileCount":27,"unpackedSize":59616,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpfshBFhkVB9oO37r555eXPE/BRfIBzgUdlhWOAm9lOAiBddMfdrNVPeEgWGe0cn/FBgF2kehtEY4Pazzpr8gEM6w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/XC5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5pQ/+KB1hpUnsj5z+wO3AZrSFdJJm7Fww6nlxY5BuWZar57baQh16\r\nqH85gY9VDB6hYMQA8UmDpbBD4jRfQlv3W/VagU0SYp+wOPOEjD/oFpltw34/\r\nEFZXe+s7Pth4eaotlYHRKfSZ2DwPXxjqT+S5todO7r5EBlhfyxst2fjPViY5\r\nlW6GcST+TQIGllOt+qBWwZDzfMr4lojHaUnwKkP6MVgKzJ1kbwEd01LIsiVp\r\nNiCo08Xu+9KxyTAZtEYsU2rdp4qeUG67y0sUqHPV5C/1ldnRU6CUTw/cuwDY\r\njuEWqvP/YStGg6tVGae8hTAc3EBQ4FYA7ex0QGQjPMky3JDg+fQI5d7C/KNP\r\n3J7lmdfsQi5jrGhurYjF2M+mYyZBRSIX0PQlVBDgm4hsw3L2aYOR/NoiJSTm\r\nO5vyR9eqgrf0/EUFUW3MG/b1r7HbtnxBYAT1zy1jIOHxYzayqY1EX39fjIU5\r\nmNozu5RRGxJq7QwypoASWLzO2M4ArHebGVz6dYL603pUeClOFoHcf7ISNSZR\r\n0a9scjBJP+gGgj5KJIbd6lL1RNQgNPYGf2MO/+opiOzhAJrXeZPrTxSfRKEH\r\nkDU0umSTvr3dp4ZGZ+hIueyeENNDzAkTrOaeRuJasxSWwYl0VY5HuwIL6W2O\r\n7hww5Ei5dcKUeXHIW9j5lnC+tyn26KTmiYg=\r\n=NHXT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.4_1677553848886_0.7569450435421512"},"_hasShrinkwrap":false},"0.0.43-beta.5":{"name":"@posprint/command-builder","version":"0.0.43-beta.5","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"8a05c8dd6d6cde6dc36c8b30b3e1a28d1de9b3ea","_id":"@posprint/command-builder@0.0.43-beta.5","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-SLP3fZEdb3hIoHMco5hhB9+0YS+z9Qp7XsHeHDpSC3fkTl55keyQLIZJ29S+xUL78ZLLuVnp2ko/FAEwR3GcSQ==","shasum":"dca659ce5271c20f226c997aabba140f09d07e63","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.5.tgz","fileCount":27,"unpackedSize":59620,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQH5sviSzqJco3+aZpfXzaq+P9+YW1Afmz75jF4Si3TwIhAK1Lf8+sgcD51JB39t7KSjjy9xD3XiI7M7ImkqgentFX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/Xi/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohmBAAm+w5tBT913w/Oj2EANLIXzHJBE7Y3s7rIdPGeQKdfoEpI51f\r\nMDNB3psq5tO0WulXu8bwRPbvvd/2D1O8SRqaCO4br4gMBgcE4he7MotE6e/U\r\nZhE+tiP/PdJyXJiwb1JyR52q07Oh0Tdqvz2xrhWheVdVdUv8ps4jcb6unxTt\r\nlYHeLhJyD5ipaIfkWfp9e/23oFeX+s5iym+QA7FlfXzhTxWzv0uKncTC7LsX\r\nW/67+ElRb3IWOx8D27AdfE7LzeriYKH/olc1/BFPLA2Xz+czsnX5FV5JzjJ0\r\nJCM3bAFkCAZsNp1BEjdXmRENPWkgU47qkDPT1ZwGSsfRs0Z+rK1vIpT49VlX\r\nYNpbV6kxqAh+QX5ndKKH9XWUl+yCXJY2uO4XNnLFGawmlHk5X2/IKon4EYDk\r\nw3zHv+7/LvgGp2/tUIS0VRL/QkjDn2RxZepPGSZYzz7klOASzt459lYYf+W3\r\nc6KEWi0ZPMCfkYXK/wUV2QRaXDCdHEp2qD9IKMutDVj/0sn4av2g5yMMf0Wz\r\nbMaq5dcLtRcivLZchtmIA8FVjV3oFyQuKek+Og+fHfgrlFX1xdZY8u5O631m\r\nZcTyfwrOJKm2poM6I8AukhTia5XKwLiSHuWhuyvQ/eaggDB8QKDXtMlrDN+e\r\nxe/TejT+3XWlyOlaqra1HxDrZ14NvJcmi+g=\r\n=99kT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.5_1677555903350_0.8173232302093463"},"_hasShrinkwrap":false},"0.0.43-beta.6":{"name":"@posprint/command-builder","version":"0.0.43-beta.6","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"8a05c8dd6d6cde6dc36c8b30b3e1a28d1de9b3ea","_id":"@posprint/command-builder@0.0.43-beta.6","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-CeGrsTuQynMEcrqfxtvJUTkyetsvMHqvmsiiJe6304Vyxmdgldcjfj9cL+qQm5ilYi6tvQ4l7HFlnKT6xaVKhA==","shasum":"e431f6275b707f7f6654c2c1cc68a73030071c60","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.6.tgz","fileCount":27,"unpackedSize":59622,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNfMX8NOSJoKO6+LmR74jE0iw4A/AJbN/Zco9pykQEmAiBzR5m0+fdX17mV/p5Pm7/J6sZiFA3lQaph1D4reeO4FA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/XkSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo32w//XF2/cZte8aWV8uqrenRjpk4zfRaRueHkHfIoUGKouZKhlSI9\r\nj0gkFm+Nppt7gaKOIG8HZb9yAze9vUGduBXZn2YIoS1Qy1/JeuDQ6hfbUTOZ\r\nIffOfslBvIVoxbxPDQk379Hx9YBzk2TsMXV6BMM5G711T3r2WNIZuUvMobWl\r\nKHt1rYKX6uGWSVE/aTh0RKvtLTwEhqP2YioME8qWrRAfITSE0qrp0yI4s4Fi\r\nuzsxhhyKPjSh6laeOOyKQ0v0YJmoQ/S2Qj8d3wosOrmXxnnqYdzOUeZG6hNh\r\nkeSwhh0qA8RVTpd7Qvk69usG2sgIae7Gelnj4Kv68LUKdqckzGirUumqytRW\r\n8EeU15Zyo2SSSZ90YZdccqtCII4aGFCdTDkggEIB2aQbTaL0nLECw7NQKutK\r\nwl6Wmkca+is5y6Z93PyrRENG9TQZGTV+TKQ5E02NNyQr8e7kAjnGad03/Hio\r\n2Fv7jswFJGB2HxvPJT8LBxc+JJ+yhcO5sSuZBpuNLgVgdw+V3R1Pt7rwTlsp\r\nPY0kaiotwKZrnWsonmzcN65Las9MCsnUP1NBB7eftp73tErgZxIsKsZXZTDz\r\n/UKHjn9svPsL7y8Fh+PGdTeFsEmRsYgGj/hqHdrKrTtXCXCBNRjNjp+z21Jk\r\nCPTvPN09qUmGiLOXidslvYLJP6MTiy9wA8g=\r\n=RTbV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.6_1677555986063_0.9731499724255128"},"_hasShrinkwrap":false},"0.0.43-beta.7":{"name":"@posprint/command-builder","version":"0.0.43-beta.7","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"77450833731d869c63b033b265d5df39d7255e75","_id":"@posprint/command-builder@0.0.43-beta.7","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-hUMnTfixhYd2I/ahwyeKrzXPFwJpHS0APXZlVzWOPi8ASTP8co9WgtAA5F6tzqIhxeBuuaXfTz0DCyt+tvX/Iw==","shasum":"d78163982960fedd972b4afcb78ca015a58fb9c1","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.7.tgz","fileCount":28,"unpackedSize":61666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICug5UGtN8hXZRM0U6FXvEUA5NAg0DUG5SYDd9nIyZtVAiEAwLZ1q7GGFguvFNzkfmD1wAPJLplSWE2Se+1eIP9Dj9c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIox7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIGBAAna/t6rDPCSZwfra/mtnaFkGmTh6W3g2efUZGG70hyAgF0sX+\r\n4xA6UBkzBuzZyczF6WINUD2riJCn5QaaGBEyfaEabbsku8eXQCslTFcd94qh\r\nV8o8Ga52eqYVLmgiLccs02Y2Lx+804fPmQK7me2/8Y2Xw/8oPmTS7u+mtGMI\r\nqccjvNH/Ie4Knb5Xsor6EoH5MNZlElQPmI5QLIG0VHPdW4bhtm+63vAuDEng\r\nTqXWQDl1Nk1vghmKSpKjq7dDgOwulboJv1hOOr8mC3cw70A+VNqzs2pvvuvO\r\noUEQoSymuMCH1vic2D0pYD/jDucZh7km9Gc5yA0hVGGpbLPL1CG4LlAnp7Xy\r\nhMSAwh2QF6KAZa5tZV+D17BILij7ZaxlfbrGBgb3H31lK9xR0NljID/twHHU\r\ns27Hr5DjSWr9jmNq8trJxiOgZMmIBvKvf90TR9m96YgVaGJR9//NPzpqcweN\r\ntb2h0coFgiV2J3xhvyKT/C85Fg+7gV7biyaLbgSFZnM249N/8IU+jvfMwp5N\r\nw2nXTy5alnETqX+fe4sKlL4/Wqjlq5QgqLx7dzbJikohDEK0rZtFyLYqrdUG\r\nJ488nj5AH4pBDZC6Tbi+00niVNKZUdeXrkdALBD5i7ipeUQuWvoNlzWDIktj\r\nLldIK1yW+q5Ak3gpUNinpqrDcUvCIKAGZCU=\r\n=CHOI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.7_1679985787586_0.845807372549574"},"_hasShrinkwrap":false},"0.0.43-beta.8":{"name":"@posprint/command-builder","version":"0.0.43-beta.8","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"77450833731d869c63b033b265d5df39d7255e75","_id":"@posprint/command-builder@0.0.43-beta.8","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-FII4WCbZyH0AXrsh/kKV1fDlB1ItUQ52bVT+4oX2iSICVu0wBCgyoW/PD7caxSjdHVbD9QRZdpwJUNQAqFRriw==","shasum":"d2392f7f2cb1bd9cc22216715c567e458fbcaaa2","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.8.tgz","fileCount":28,"unpackedSize":61633,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6d4D+y5GD/67dbb6SI1svywT5Ud3D4bEszlDNPDOMEQIgPKK84SNigftkqYj0RbnlGbQLB7u4MPP6sqLDr5N/wfI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIqH7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVjhAAoEpXST5lXFcWh+QoZC5B/y1BOsW2DLMaooq5UOOAnukiuXff\r\nIV+hvG3TbGv0mWfBpbFBJTHn+68JZSBgXt+3wRZwBrXgM+hlliouJ0up2VqT\r\nvIWRtMPtt7PsbfdiCleszH9B96mx1d81siDAcVqGUuMo0Z2+1yFKSiKsf/GL\r\n0/+VxJor71GYF6jd4ac+bL2zDStKm3q9XFF8jO8zqNI8nBP3+sSIZ/l+v5H2\r\n89mYbDyn8TcNfdIrKQFIn81OitjnNHbDjeFI0uVdySd3i6ziZKt1uQIG5X7h\r\n8oH4bc1lYxTBuuteM5BCQEjYVrx4pkL99isKapo9kg6cV/rciXQd0h7/p8zy\r\nWSByzcH3rQ22kH10ibFkO2LF7MSAaULEEqfEqDFeKtausdR/kTyceqYVTfgk\r\naM7L1WUxGY7XV7/UMwDRg9zRmokuRkjvOKBfRRo67HqkQ4M9s76hRGKgEelR\r\nv45RYF+4oTtRKTIur6U14Ou8wccxqqmQyzt+TbTT8sP2Y+6Q+TgAZao6SXtS\r\nseCtL1JVmdSXI2qHWSfSh9ZxrvsEAzyOI6keoqjOYqwhBrxDZ6yQ7sSE2wJ4\r\nIBK4E8V3d2TpFHtSx1490crqAfQ25SwlQeqwGxzpuSv2grVkQZoRd2ISmMe5\r\n4EwY73cOjlaBu+8v8LjY2mL0kv5odV6U8NY=\r\n=qaNI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.8_1679991291518_0.9382509728691939"},"_hasShrinkwrap":false},"0.0.43-beta.9":{"name":"@posprint/command-builder","version":"0.0.43-beta.9","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"77450833731d869c63b033b265d5df39d7255e75","_id":"@posprint/command-builder@0.0.43-beta.9","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-3wxp7A33oDouPTk6Znh3blaH5dDrCMYvXkna6MOnmTWiUv2SA76JtWCEgeURdBSZyZia9m4Mq4hDRQuSRPx+YA==","shasum":"967c846ac748081d335b89029fa41bca422bb816","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.9.tgz","fileCount":28,"unpackedSize":61982,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEr4OCLW6ElxtnWaf2Ti9DEQDGrhuttZH0TWqw52PaDgIgS3IxfCCCChrviYLm1g2udx9LqPB31SnsbVRiZfnu/pE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIsJsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQSw/9FdyHhbrETPVesvnXJyIyAOQyrc2KLYRzyOVzBUsuNxNp8pZh\r\nkm4vH4g+dQ41r+qpJQVDFDazNo87p8PmIsOsHwi3Ov0RhIvvMsAHv2gSBgwb\r\nc6/gtljFulxQzsbxFuDH1Er40WNU3cwTFgM2fw5NxCRZTyIF0+TzQ6BXmT2i\r\n74i5mlWcpbuClUc3HbG84kvVzuWOiUPN693R/FKHzusTA5INHl0/JfdtVDWe\r\nGliQ6jb8N2tUxRSVAeiLcQwCN5DpVYUdS3jGdGWUhozU1nVomxJn85k87hk0\r\nlGnDWF6AsWKw1yB7bcffL5/KrgbJnLcEAYc3hi0juFCrJOIJTzlRkdfg1g09\r\n0pgoAT/WhlF1WVaOiE9zGj6rBFdTq73F9TqXXYyBX9QDAC8uqqZkczAvIJqA\r\nOJqAOYgbVqNufMwjQr0CuElpwqR5wVd//0xpwY/I3O55ujpvIQ1cwEZo3RX2\r\nw8eHYon/D0FhyWqwh/e4DTm8V1qZdggkxwJcRbZgcH8KcEH7GUyusiTdDZnb\r\n3SESKIO4tYeV9mWZHSWkBogmT8k9uTcgUoZvzHEph0xvM+qG34cp/Bc23ssY\r\nqCt0pGM3UfWkcHX/ELs8pv8Q6mEQBbeLP9RVeeyfihjjp5L0/W7QE3g1j+dM\r\n1nuXG1lTopwZP0Y9l6mHgwIV1dMirmjhLPo=\r\n=zznI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.9_1679999596569_0.8076269381132002"},"_hasShrinkwrap":false},"0.0.43-beta.10":{"name":"@posprint/command-builder","version":"0.0.43-beta.10","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"77450833731d869c63b033b265d5df39d7255e75","_id":"@posprint/command-builder@0.0.43-beta.10","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-IoZK0qpJ1dNYks7K5Qy5MfCsPAqKW9pZRdPoz8HM5MlG8wZPv0z4kqHroKpDm4awAle9xIat2et0rndk+GLxrA==","shasum":"458d4433b4ec31d57e042bd7d2e2f6cc4934ed3b","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.10.tgz","fileCount":28,"unpackedSize":62154,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD00EsMu/apdA7q2k8vS79PWt3BLM25O6Bh230lT0SpBwIgJEeXVBBBKq1aElUdQyOASC7dwBMPCuwqqcQvjfO8NvQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI9T0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMqg/+Pu89AUq5wf+pq9xu3G5fQDUhWYsFGG/7TA/xPrTt0PUPzwPu\r\nXV1ssfxOjzY4mNI28CuqYds2gNizhuAXvYyomRMQB4rdElddbDOTI1s8FDyp\r\nXt1B2KFPz6Lxr8cfYlJKMewpnt94pZkUDCaqR69ZoiBTqQwrLy5I8zQqL9v1\r\n6mxAuI6gMJlN6CRWiYth6ZJaDXxRboBk7fh1gtcZATBf5C3wfHQfi+cnFBMf\r\nJJWaAEUmAjiggynJiMoRxRjcLATiZ58/LC7EJrGbafYMXyhsm3gVobL8o0Bn\r\nuTO7rjnGeGTAdF75l/5JBC91vKYjtqkUTRPUnYLcI1E5lER3xGB2bjl8OrG4\r\nt1NU4vFDik1ZPSJDJidJFAabpZ8yi1xQX5GZzKPEuK8Ao9qYgEiYwaeVJJnE\r\n631jflxrrShRqHgQZq0CKSJeyTM0pPBZGJhMiMr7xapav9eH0tC+IYoGWMPw\r\nqRkvGFoLtNF3frhKwVgwUqbIVRq+szo2+cokNkcwMXVA4rsMbLvnIThs8N/Q\r\nkBo229Bz6rhKhhUbtnAegLOJG6BUI7l0rq9nbWNigTFPxzwE8DXqi/1uSQr5\r\nBGTbCkaIhmv5VtXrhgJosdTTYBd1QQ+PBEvthtnTLMM1xNNA1KLsv8m/UY9T\r\nwhj/J80f4TF9vKTNElG+MJJy31JWQeOYRHg=\r\n=+Ixj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.10_1680069876162_0.6271917483514682"},"_hasShrinkwrap":false},"0.0.43-beta.11":{"name":"@posprint/command-builder","version":"0.0.43-beta.11","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"77450833731d869c63b033b265d5df39d7255e75","_id":"@posprint/command-builder@0.0.43-beta.11","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-ymUNXZrBn/1svtxmfiAkZDyOQGnSVtkF7WyohpCiX/CBk95CwjGexj1uvHxQqpT6+8Lee8yCWIEH4C675fd0/A==","shasum":"754be251eef96651daf2696991af2dda7eb6c410","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.11.tgz","fileCount":28,"unpackedSize":62195,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSWxLSeF2OnGJ+jNY3EQnOFbSIMNRPmwUyovAciePLiwIgXcqc74jbgHRIAQhKjVH65/V48eD8/0LhN2N8d/kQnZA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI/pEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpptw//eCw0ics1HS88ZLaCNK6KrjJoXo87ARydPDbOaey4s+BTXXaC\r\nURSv3xgvoYUTHCjajxUFA0BNhDSfkarpj3WeUfKegEOQ86cHRapXioWQfBUE\r\nWx7bEjuA8O3TbQg3tr5VFSt/46S27AkL3nFQhHleav0Mmr3WwmLtzJaFJmBh\r\nfmxWHx2oqYX7TUzedeyAKHC7GHSAVFsDAiS4zPpovCaFMNa1PIuZN+NLYQd5\r\n/MkFs14DsmOcLk6mMvfeo2jw0imKRYUc4qWCOIIGYTLjwuQJNKbulyelcnzj\r\ndZPaUD+2xqt1nu3D4VavbG8vqLFDIrhxCNIcN/bL9S5zstJiPjKpXmr2qAlL\r\nlmhcQ8nNWgCHyxKcjztun7evGjos703gidba9yskdj/BVsby0cdsnI/IPC2L\r\ncJksnG8pa5ucA5xA2RFD4MHQmx6L/7qX8IK5w7W95mTPBRDMsL/AC3CdHpcj\r\nquj9hlafDS2DdwhkJoh9Ym8RutSHTEO65Uhx1xSRfzESL1dW4Cx00sBdC3vi\r\nJcJykAsYCWSYVBQadvfbGi2bHDtbMnr2GgtQwlqiap6Hm9//DyA29TzPdAYf\r\nIp3gwlixiGjIQ0JNKN+sehQw5n295Dd8yQAL1t1gT7qQonkYhIpXmXC9LBbH\r\nEirrQcMVJIuaoZXnOW+nmxM5OQQdQwyCOl8=\r\n=3VPB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.11_1680079428100_0.427624858581072"},"_hasShrinkwrap":false},"0.0.43-beta.12":{"name":"@posprint/command-builder","version":"0.0.43-beta.12","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"c0c08c19320c57d42e1bded47ccb6ac59dbae3ea","_id":"@posprint/command-builder@0.0.43-beta.12","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-PgqQhinSy9KZYEuPU/HzOLrmj0Ash4pP0s5p4ZudCEDXshA2N7PvEHebTapjGdeyq/kF/70X4TWfcTa29iYIlg==","shasum":"9c0fe4296ca4d6742ec8e5bf3908deee15b9caa0","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.12.tgz","fileCount":28,"unpackedSize":63286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHoBO0xTdaf+mV2tGKSkF4y3tROdalHrBD26BSU2lczAiBdmBnnJ5cHsJcOGncB/t7Er6ct3Xrad63DtUOzHHpaoQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPkRnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocVA/9FoNCUf4EiTqck97mUKXTj9nSBl4UwzBZClLK4w0LlnSxTcPX\r\nEyCEiWph/c5D9u40YVSuVmOgfXR8ruwUdLOlaylTN9uvkMqTLO90gbEU8DDH\r\nBy9HkSx0H8cCCfJa2GPFo1N8OfCEYKWYcZAB9xQUfqVQgAbHx/iEBv9CA+pc\r\nbu8THsEmm1/nTnThAITO1IMHOT1AqyOyzQEZ6sdIgh2dueVPMbQt2ZiXdYh1\r\nTbH8UafeO22yQ4rIPi/DUZ0esaALdg7LMz7lKWuQn6nryq0YsUYm/9CdrS3r\r\njoPu7am3t5K3+kw/y2OHjyPusS/QrQA9xqtFgHAKzQ2vdEQ+1VIq4Vq+braj\r\n03v8x2nRzqpoTX+ezAZ0EFbGURnzuZKp56Hn4UG0DSoDfrrb3Eq4EfX3yoyn\r\nRJgfEhulRLbeFJq85s069nhY5AA2MOV82j5iT5OAOsJPNhml7LSJBiELbRhV\r\nhVmgRfgjKSabunYFATczkqAk45ar/V9IRXJ9dEtgEWJWS6EVxZxmVEEQZFNx\r\nCJLCNpmWCthlhEos1xPRgGscZ6ugdzlIzzQx0dDwGRTmgnjAQUXsN0CjHh5c\r\n/dnodC/HicYigrbk5QRKZ0uR7wFjYhcE9U+s1T2MF0ZXEguX706n9KPeBFGW\r\nUk17NTgddLDq9EtmPWR1x0S4GR5nO3QzP+M=\r\n=hJaY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.12_1681802343346_0.32804628639635447"},"_hasShrinkwrap":false},"0.0.43-beta.13":{"name":"@posprint/command-builder","version":"0.0.43-beta.13","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"c0c08c19320c57d42e1bded47ccb6ac59dbae3ea","_id":"@posprint/command-builder@0.0.43-beta.13","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-7T7BY00avUlsvrxP6M7mD7Vt/q+uRfr5s02+w/RZsmvrsfsF0dPmBMDzuzwUZ5IrAMBiCsA7GsW3+lh4GLcqYw==","shasum":"8619e3cac1ebc166dabaebffa0336b073835d1ff","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.13.tgz","fileCount":28,"unpackedSize":63436,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0MSyTEdHyGZ4h9gQK6/YSyNzjc+4NSK5XTZXVz1MvIAiAAoYHiVpp/0OAq7kUKhRN9iyd7dtjJedwNscpcvxPJVQ=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.13_1683543333711_0.7653996497868478"},"_hasShrinkwrap":false},"0.0.43-beta.14":{"name":"@posprint/command-builder","version":"0.0.43-beta.14","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md","gitHead":"c0c08c19320c57d42e1bded47ccb6ac59dbae3ea","_id":"@posprint/command-builder@0.0.43-beta.14","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-mi18hYD+KHQp0YuHQ5EixCy079D3v99Yi2CCrVqyBpUXCScrEcN5FcPVF3w6d6TrZ78ykr7vChnoU5J2d5ctUA==","shasum":"2941167bc17249b6e3dae1dfbbbf42f7bcaf08d8","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.43-beta.14.tgz","fileCount":28,"unpackedSize":63448,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0XmT2EgNnNpR43ukIFR2NQn5EUteMcC4bqioVOSw7FAIgATMDbcwrSijGy5IY8UpknPNIWmV36Ti344PIk5hBtho="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.43-beta.14_1683648904867_0.000048094138550780485"},"_hasShrinkwrap":false},"0.0.44":{"name":"@posprint/command-builder","version":"0.0.44","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","lz4":"^0.6.5","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"3e3f374ccee4c5d727d2454f84144ff0cdb10433","_id":"@posprint/command-builder@0.0.44","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-v0BsfzRmIu9r60dRyucz6pAkgaygPQVq8T2i5GbPHKxd5LLzTDBrGT6e/PgoSbR2Hrx2j1Mq+LAc0OeGC7yrUw==","shasum":"7d589a314ded9b510ebadeca806e7a12059d7cff","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.44.tgz","fileCount":28,"unpackedSize":63624,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHApRLrrWg75X8rY5bxPTgFTqj5lkmGA63DxH8/GRhxyAiEAlZVzXPzXZY1QFa0RiJDsJW0aMstfR3ieUeWSrOWZSgQ="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.44_1691053145968_0.5811546420249838"},"_hasShrinkwrap":false},"0.0.45":{"name":"@posprint/command-builder","version":"0.0.45","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"b5aa49d13a166cdcc7bcefb344e758432f4e83e9","_id":"@posprint/command-builder@0.0.45","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-RaC05iwBhWVZN0ZH5n9PwmcT1frdBBDNWTj97auixAbxhMuAwAriCZ1wlRUOarU11yY+Cj8AfwGWOd/RwHi8dA==","shasum":"471a7d779d37f7d5ab6a44e562d41f21a4f1cdd1","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.45.tgz","fileCount":28,"unpackedSize":63603,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8TrlVPemURJsmnuJul9VsyxWy0Eg8MpOBT79evnL/uQIhAKpgdJ7emwMqnZkQvkJzFYJrZ+oMJQ7LwpB93IMI8QOF"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.45_1691119192399_0.6570734060515262"},"_hasShrinkwrap":false},"0.0.46":{"name":"@posprint/command-builder","version":"0.0.46","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"b5aa49d13a166cdcc7bcefb344e758432f4e83e9","_id":"@posprint/command-builder@0.0.46","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-nvrzz6XHS0QwiEyAKg342xwlLqk91jYoVlfOgFx7m0XBRZ6ngSP/tSHh9JKAbiyt86VlevoC7QHvf92y4hatGA==","shasum":"ff89663f656dcc1c2022dfd41a234b30e6a84abc","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.46.tgz","fileCount":28,"unpackedSize":64317,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS/RiFJIyh+gUN+CNSNGxwQBPKYBbCx08AvmAOtlqQ0QIgWfsW5t25uGRO1RlONxS82MBh/0IOaruRbRfObXeIF7U="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.46_1695620408929_0.2861942946581508"},"_hasShrinkwrap":false},"0.0.47":{"name":"@posprint/command-builder","version":"0.0.47","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"3f44d3b11976c872e833a1c575e524ce51522a9a","_id":"@posprint/command-builder@0.0.47","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-MUk0s1r0f0Dgs1qXZeJXVy9EfN6G8hpaAVsdQIzrPp+53yVAOhpLrYVQrNG51hmA+RfnkkoWta1Bk8nGpadqGQ==","shasum":"37bffecbb259f211d2485490512de3ba0f74eaa2","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.47.tgz","fileCount":28,"unpackedSize":64746,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnZmScE3gvtvt//WfqvhhuDCCyk8/xLqIEVUKcLi94FQIhAPBUa3QfwMKzC4QDgBfEWrZZP9/FPZLHekL2e4rY83pq"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.47_1697781649606_0.20461974737481414"},"_hasShrinkwrap":false},"0.0.48":{"name":"@posprint/command-builder","version":"0.0.48","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"3f44d3b11976c872e833a1c575e524ce51522a9a","_id":"@posprint/command-builder@0.0.48","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-5Sxu5OPMlhPtoIITf9ENRnGCDLhD07D81S4DH5t9Jx33+7xnS2Duxan9B3isj2N8oQbfgsHtMkSqVRqQNG4y9Q==","shasum":"67aba26d2d4d63191ce3cd2044ff51848048ae20","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.48.tgz","fileCount":28,"unpackedSize":65303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1xr0mEo75x4axbTf4K/v6n9LBGyOWCew8w6e6lg5NwAIhAIBda+c1TRJk/eU7BVhREuijA1NAuxVv2dsC3cRp9sOi"}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.48_1698052018132_0.5357498821712108"},"_hasShrinkwrap":false},"0.0.49":{"name":"@posprint/command-builder","version":"0.0.49","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"e6df8aab7d994a33bb3dc000a103d8e2de2cedfa","_id":"@posprint/command-builder@0.0.49","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-PVD7HUBYKbbT0wYXAYxtX/mPL6cJwHlbZSPw5ZpwCeyNUCAYXOvGGg7RWrBAbtLfhiyAYwvHY0JMqQgaf9+C1A==","shasum":"e0a07b28244d1159e6df8154b4a8c29fcee566ea","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.49.tgz","fileCount":28,"unpackedSize":65370,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqPHmMK1v537bInOd/mZNCJ7N2erU+ppXE2J/cxacHjAiEAl3HztWQ6JkpurOIWnGFB9yqRoSIOiLoPsfaY/pWGgUs="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.49_1705903952448_0.6001534789014449"},"_hasShrinkwrap":false},"0.0.50":{"name":"@posprint/command-builder","version":"0.0.50","description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"homepage":"https://github.com/sloth-dance/command-builder#README.md","author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"license":"MIT","keywords":["ESC/POS","TSC"],"dependencies":{"eaw":"^0.1.5","escpos":"3.0.0-alpha.3","is-chinese":"^1.2.9","joi":"14.3.1","qrcode":"^1.4.4"},"devDependencies":{"coveralls":"^3.1.0","escpos-network":"^3.0.0-alpha.5","escpos-usb":"^3.0.0-alpha.4","jest":"^25.1.0","power-assert":"^1.6.1","standard":"*"},"scripts":{"test":"jest","coverage":"jest --coverage","lint":"standard --fix"},"standard":{"env":["jest","node"],"ignore":["examples"]},"jest":{"testMatch":["**/test/**/*.test.js"],"clearMocks":true,"coverageReporters":["text-summary","lcov"],"testEnvironment":"node"},"gitHead":"e6df8aab7d994a33bb3dc000a103d8e2de2cedfa","_id":"@posprint/command-builder@0.0.50","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-6eMerrJBtsmSDWbOKXZMDu10gL590YcpSePUdOpQFS9cEDhOITetf32ADwdl1S6tVKrPIxBNlvftCfvTlPU5BA==","shasum":"cfe836ab1a452be644f30bae9e22e5e637a1a1a8","tarball":"https://registry.npmjs.org/@posprint/command-builder/-/command-builder-0.0.50.tgz","fileCount":28,"unpackedSize":65886,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUcQStezCNP2Hz3VopxB9RtXMDU0IeXo1PT8j1KXS1MAiAbdJc6N/kYNrhlBQmoAlF5kr0HvB3YOs/JMl2y8usHnw=="}]},"_npmUser":{"name":"gerow","email":"980378410@qq.com"},"directories":{},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/command-builder_0.0.50_1712469739453_0.7387984641167054"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-23T12:36:41.654Z","0.0.1":"2020-09-23T12:36:42.097Z","modified":"2024-04-07T06:02:19.877Z","0.0.6":"2020-11-20T06:18:28.949Z","0.0.7":"2020-11-26T08:47:25.667Z","0.0.8":"2020-11-26T10:00:58.051Z","0.0.10":"2020-12-14T08:43:31.431Z","0.0.11":"2020-12-15T07:32:01.221Z","0.0.12":"2021-04-01T03:27:07.706Z","0.0.13":"2021-04-13T06:37:50.575Z","0.0.14":"2021-04-15T03:20:33.254Z","0.0.15":"2021-04-19T08:52:59.635Z","0.0.16":"2021-04-21T05:52:24.163Z","0.0.17":"2021-05-10T10:01:14.434Z","0.0.18":"2021-05-11T10:28:23.406Z","0.0.19":"2021-05-12T06:40:46.179Z","0.0.20":"2021-05-12T06:53:26.963Z","0.0.21":"2021-05-13T02:02:53.799Z","0.0.22":"2021-06-28T06:51:20.160Z","0.0.23":"2021-08-12T12:04:42.976Z","0.0.24":"2021-08-25T05:33:00.895Z","0.0.25":"2021-08-30T07:43:16.382Z","0.0.26":"2021-09-02T12:35:47.390Z","0.0.27":"2021-09-22T07:02:18.140Z","0.0.28":"2021-09-29T06:03:48.348Z","0.0.29":"2021-10-21T03:37:26.996Z","0.0.30":"2021-10-21T06:03:43.822Z","0.0.31":"2022-01-07T06:42:27.342Z","0.0.32":"2022-01-07T08:18:04.464Z","0.0.33":"2022-02-15T03:20:25.638Z","0.0.34":"2022-02-21T08:41:36.410Z","0.0.35":"2022-02-24T07:04:19.479Z","0.0.36":"2022-03-17T07:29:23.962Z","0.0.37":"2022-04-18T09:11:23.123Z","0.0.38":"2022-04-26T08:26:50.859Z","0.0.39":"2022-05-13T06:03:06.200Z","0.0.40":"2022-06-22T05:56:42.167Z","0.0.41":"2022-06-27T03:38:46.427Z","0.0.42":"2022-08-02T06:41:37.441Z","0.0.43":"2022-09-01T06:05:23.905Z","0.0.43-beta.0":"2022-11-10T07:17:22.190Z","0.0.43-beta.1":"2022-11-29T09:45:41.749Z","0.0.43-beta.2":"2023-02-08T07:04:21.163Z","0.0.43-beta.3":"2023-02-22T03:27:53.761Z","0.0.43-beta.4":"2023-02-28T03:10:49.064Z","0.0.43-beta.5":"2023-02-28T03:45:03.546Z","0.0.43-beta.6":"2023-02-28T03:46:26.224Z","0.0.43-beta.7":"2023-03-28T06:43:07.770Z","0.0.43-beta.8":"2023-03-28T08:14:51.682Z","0.0.43-beta.9":"2023-03-28T10:33:16.752Z","0.0.43-beta.10":"2023-03-29T06:04:36.364Z","0.0.43-beta.11":"2023-03-29T08:43:48.232Z","0.0.43-beta.12":"2023-04-18T07:19:03.533Z","0.0.43-beta.13":"2023-05-08T10:55:33.907Z","0.0.43-beta.14":"2023-05-09T16:15:05.005Z","0.0.44":"2023-08-03T08:59:06.190Z","0.0.45":"2023-08-04T03:19:52.599Z","0.0.46":"2023-09-25T05:40:09.198Z","0.0.47":"2023-10-20T06:00:49.988Z","0.0.48":"2023-10-23T09:06:58.390Z","0.0.49":"2024-01-22T06:12:32.607Z","0.0.50":"2024-04-07T06:02:19.670Z"},"maintainers":[{"name":"princescar","email":"princescar@gmail.com"},{"name":"neil-yu","email":"yudiegui@gmail.com"},{"name":"gerow","email":"980378410@qq.com"}],"description":"JavaScript library that implements the ESC/POS and TSC protocol to buffer.","homepage":"https://github.com/sloth-dance/command-builder#README.md","keywords":["ESC/POS","TSC"],"repository":{"type":"git","url":"git+https://github.com/sloth-dance/command-builder.git"},"author":{"name":"diegui.yu","email":"yudiegui@gmail.com"},"bugs":{"url":"https://github.com/sloth-dance/command-builder/issues"},"license":"MIT","readme":"# ESC/POS TSC Buffer Builder\n\n[![Build Status](https://travis-ci.com/sloth-dance/command-builder.svg?token=JN5h9RsNpqeiEDk9f2rW&branch=master)](https://travis-ci.com/sloth-dance/command-builder) [![Coverage Status](https://coveralls.io/repos/github/sloth-dance/command-builder/badge.svg?branch=master)](https://coveralls.io/github/sloth-dance/command-builder?branch=master)\n\nJavaScript 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.\n\n### Features\n  * ESC/POS and TSC protocol compatible\n  * Root, text, table, tr, td, img, blank, separator and qrcode nodes include style attribues implementation\n  * Command node for cashbox and cut paper implementation\n  * Compile semantic nodes to raw buffer according to ESC/POS and TSC protocol\n\n### Usage\n\n1. Installation of nodejs environment\n\n```\n  npm install @posprint/command-builder\n```\n\nThe library is distributed as umd package, just import to your front-end project the normally.\n\n2. Build json tree to command buffer\n\nBuild ESC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\nconst jsonTree = {\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [{\n    \"elementName\": \"blank\",\n    \"attributes\":{},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\": {\n      \"font-size\": \"wide-high\",\n      \"align\": \"center\"\n    },\n    \"children\": \"Change Table\"\n  }]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'esc', encoding: 'UTF-8', paperSize: [80]})\n\nconst buffer =  commands.getBuffer().flush() \n\n```\nAfter json tree is built by command bulder, pass buffer to printer tcp socket directly for printing.\n\n\nBuild TSC command buffer from json tree\n\n```javascript\nconst { buildCommand } = require('@posprint/command-builder')\n\n{\n  \"elementName\": \"root\",\n  \"attributes\":{},\n  \"children\": [\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {\n      \"align\": \"center\"\n    },\n    \"children\": \"---Order List---\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":{},\n    \"children\": \"Latte\"\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"Take out\"\n  },\n  {\n    \"elementName\": \"separator\",\n    \"attributes\":\n    {},\n    \"children\": null\n  },\n  {\n    \"elementName\": \"text\",\n    \"attributes\":\n    {},\n    \"children\": \"05-18 14:29 #498\"\n  },\n  ]\n}\n\nconst cmd = await buildCommand(jsonTree, { type: 'tsc', encoding: 'UTF-8', paperSize: [40, 30]})\n\nconst buffer =  commands.getBuffer().flush()\n\n```\n\nTsc only supports `text`, `separator` and `root` right now, other nodes will be ignored when you printer type is TSC. We are extending more tsc nodes, for example table, img, blank.\n\n3. Send raw buffer to printer through tcp connection\n\nView example folder to get demo and screenshot how to buffer be printed by physical printer.\n\n\n###  API\n\n#### buildCommand\n\n```\nbuildCommand(json, option)\n```\n\n* json: json tree structure of nodes, view node tree description below\n* object.type: string type allows 'esc' and 'tsc', default value is 'esc'\n* object.encoding: string type of encoding, default value is 'UTF-8'\n* object.paperSize: array type of printer paper size, 'tsc' type contains two elements, default value is [80]. ie, [80], [58], [40, 30]\n\nReturns a Template instance which can invoke getBuffer() method to get raw buffer.\n\n#### validateNode\n\n```\nvalidateNode(json, option)\n```\n\n* json, option parameters are the same as `buildCommand`, the difference is json tree not be built buffer in order to validate json tree of nodes\n\n### Node Json Tree\n\nJson tree that contains multiple `nodes` must have a root node, each node contains `elementName`, `attributes`, `children` and other attributes.\n\nThe specific json tree format is as follows:\n\n```json\n  {\n    \"elementName\": \"root\",\n    \"attributes\": {},\n    \"children\": [{\n        \"elementName\": \"blank\",\n        \"attributes\": {},\n        \"children\": null\n      },\n      {\n        \"elementName\": \"text\",\n        \"attributes\":\n        {\n          \"align\": \"center\"\n        },\n        \"children\": \"Order List\"\n      }\n    ]\n  }\n```\n\n`node` specification\n\n| Attribute | Type | Requirement | specification |\n|-----|----|---|----|\n|  elementName |  string  | required | A node describes a type of printing instruction, text, picture, QR code, etc. Allowed element name see supported nodes below. |\n|  attributes |  object  |  optional | Describe the style of the node, font, style, alignment, etc. |\n|  children |  array, string, null  | optional  | The content printed by printer or the child node. |\n\nYou can use different json parser to convert the HTML/XML or other source file into a json tree.\n\n### Supported Nodes\n\n* root\n* text\n* command\n* blank\n* img\n* qrcode\n* separator\n* table\n* tr\n* td\n* section\n\n### Exmaples\n\nView [source code](https://github.com/sloth-dance/command-builder/tree/master/examples) in the exmaples folder about ESC and TSC content printing.\n\n![Actual print effect 1](examples/ToUpTicket.json.jpeg)\n![Actual print effect 2](examples/Section.json.jpeg)\n\n### Recommended HTML/XML Parser\n1. Live demo of parsers look [here](https://astexplorer.net/#/2AmVrGuGVJ)\n2. React temple parser supports all nodes of current library is available [here](https://github.com/sloth-dance/template)\n","readmeFilename":"README.md"}