Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sodomon2/lua-escpos
LUA library for printing to ESC/POS-compatible thermal printers
https://github.com/sodomon2/lua-escpos
Last synced: about 12 hours ago
JSON representation
LUA library for printing to ESC/POS-compatible thermal printers
- Host: GitHub
- URL: https://github.com/sodomon2/lua-escpos
- Owner: sodomon2
- License: other
- Created: 2024-02-18T20:17:45.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-11T08:18:44.000Z (7 months ago)
- Last Synced: 2024-04-12T15:11:17.443Z (7 months ago)
- Language: Lua
- Size: 41 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lua-escpos
lua library for printing to ESC/POS-compatible thermal printers based on https://github.com/mike42/escpos-php
# Usage
```lua
local escpos = require("escpos")escpos:connector_type(type) -- linux or network
device:connector(device_connector)escpos:text("Hello World!! from lua")
escpos:feed(1)
device:close()
```## Install
Install with luarocks:
```
$ luarocks install lua-escpos
```## Documentation
See the online documentation of [lua-escpos](https://sodomon.gitlab.io/lua-escpos)To generate the documentation locally:
```
$ ldoc -c docs/config.ld -d ../public/ -a .
```
the documentation will be generated in public/.## Dependencies
- [lua-regex](https://github.com/rrthomas/lrexlib/) For the barcode support.
- [luasocket](https://lunarmodules.github.io/luasocket/) For the network connector.