munir ishak c3338a649e initial commit | il y a 4 ans | |
---|---|---|
.gitignore | il y a 4 ans | |
README.md | il y a 4 ans | |
buffer-helper.js | il y a 4 ans | |
index.js | il y a 4 ans | |
package-lock.json | il y a 4 ans | |
package.json | il y a 4 ans |
A printer command toolkit for translate text to ESC/POS command.
e.g. Text “这是一段打印测试文字“
will be translate to esc/pos command with the text align center.
npm install escpos-printer-toolkit --save
import EPToolkit from 'escpos-printer-toolkit';
let options = {
beep: true,
cut: true,
tailingLine: true,
encoding: 'GBK'
}
EPToolkit.exchange_text("<C>这是一段打印测试文字</C>", options)