Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
munir ishak 82a87c33ce update package details před 4 roky
.gitignore initial commit před 4 roky
README.md initial commit před 4 roky
buffer-helper.js initial commit před 4 roky
index.js add image tag před 4 roky
package-lock.json initial commit před 4 roky
package.json update package details před 4 roky

README.md

escpos-printer-toolkit

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.

Installation

npm install escpos-printer-toolkit --save

Usage

import EPToolkit from 'escpos-printer-toolkit';
let options = {
  beep: true, 
  cut: true, 
  tailingLine: true,
  encoding: 'GBK'
}
EPToolkit.exchange_text("<C>这是一段打印测试文字</C>", options)