Skip to content

sodomon2/lua-escpos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

LUA library for printing to ESC/POS-compatible thermal printers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages