printer-command
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

项目介绍

打印机指令工具类,对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);

Readme

Keywords

Package Sidebar

Install

npm i printer-command

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

105 kB

Total Files

11

Last publish

Collaborators

  • calcyu