Skip to content

HyperLife1119/printer-command

 
 

Repository files navigation

项目介绍

打印机指令工具类,对TSC和ESC指令进行抽象封装,方便数据转换。

使用

import {TscCommand,EscCommand} from 'printer-command';

举例

const tsc = new TscCommand(new TextEncoder("utf-8"));
tsc
.setSize(40, 30)
.setText(0, 0, "4", 1, 0, 0, "Print test")
.setPrint(1);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.6%