您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
munir ishak 82a87c33ce update package details 4 年前
.gitignore initial commit 4 年前
README.md initial commit 4 年前
buffer-helper.js initial commit 4 年前
index.js add image tag 4 年前
package-lock.json initial commit 4 年前
package.json update package details 4 年前

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)