You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
munir ishak c3338a649e initial commit 4 jaren geleden
.gitignore initial commit 4 jaren geleden
README.md initial commit 4 jaren geleden
buffer-helper.js initial commit 4 jaren geleden
index.js initial commit 4 jaren geleden
package-lock.json initial commit 4 jaren geleden
package.json initial commit 4 jaren geleden

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)