Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 828 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 828 Bytes

lua-escpos

lua library for printing to ESC/POS-compatible thermal printers based on https://github.com/mike42/escpos-php

Usage

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

To generate the documentation locally:

$ ldoc -c docs/config.ld -d ../public/ -a .

the documentation will be generated in public/.

Dependencies