Scribe converts Lua objects to readable strings and has output methods to output tables in many different formats.

$ luarocks install scribe

Scribe provides functions to convert Lua objects to readable strings and output methods that make printing Lua tables in various formats easy.
For example, if `arr = {1, 2, 3}` then `scribe.put("Array: %t", arr)` will print "Array: [ 1, 2, 3 ]" to `stdout`.
Scribe gracefully handles complex tables, including ones with shared and cyclical references.
The strings returned for those tables show the underlying structure in a way that is as readable as possible.

Versions

2.0.0-122 days ago3 downloads
1.2.0-125 days ago0 downloads
1.1.0-126 days ago0 downloads
1.0.0-137 days ago16 downloads

Dependencies

lua >= 5.1

Manifests