# escpos-printer-toolkit

> 点单宝打印机指令定义

Latest version **1.0.8** (published 2017-09-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install escpos-printer-toolkit
pnpm add escpos-printer-toolkit
yarn add escpos-printer-toolkit
bun add escpos-printer-toolkit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-09-20 |
| First published | 2017-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | shenzhen candongli corp. |
| Maintainers | wanxsb |
| Keywords | printer, esc/pos |

## Links

- npm: https://www.npmjs.com/package/escpos-printer-toolkit
- Repository: https://github.com/wanxsb/escpos-printer-toolkit
- Homepage: https://github.com/wanxsb/escpos-printer-toolkit#readme
- Issues: https://github.com/wanxsb/escpos-printer-toolkit/issues
- npm.io page: https://npm.io/package/escpos-printer-toolkit

## Dependencies (3)

- [buffer](https://npm.io/package/buffer.md) ^5.0.7
- [stream](https://npm.io/package/stream.md) 0.0.2
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.19

## Recent versions

- 1.0.8 (latest) — 2017-09-20
- 1.0.7 — 2017-09-20
- 1.0.6 — 2017-09-20
- 1.0.5 — 2017-09-20
- 1.0.4 — 2017-09-20
- 1.0.3 — 2017-09-20
- 1.0.2 — 2017-09-20
- 1.0.1 — 2017-09-20
- 1.0.0 — 2017-09-20

## README

# escpos-printer-toolkit

A printer command toolkit for translate text to ESC/POS command. 

e.g.  Text "<C>这是一段打印测试文字</C>"

will be translate to esc/pos command with the text align center.

## Installation

```
npm install escpos-printer-toolkit --save
```

## Usage

```javascript
import EPToolkit from 'escpos-printer-toolkit';
let options = {
  beep: true, 
  cut: true, 
  tailingLine: true
}
EPToolkit.exchange_text("<C>这是一段打印测试文字</C>", options)

```

---
_Source: https://npm.io/package/escpos-printer-toolkit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
