| 
				
					 | 
			5 years ago | |
|---|---|---|
| .gitignore | 5 years ago | |
| README.md | 5 years ago | |
| buffer-helper.js | 5 years ago | |
| index.js | 5 years ago | |
| package-lock.json | 5 years ago | |
| package.json | 5 years ago | 
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)