Luvit 2.5.6 Documentation
Table of Contents
- Pretty print
- prettyPrint.loadColors([index])
- Value: prettyPrint.theme
- prettyPrint.print(...)
- prettyPrint.prettyPrint(...)
- prettyPrint.dump(value, recurse, nocolor)
- prettyPrint.color(colorName)
- prettyPrint.colorize(colorName, string, resetName)
- prettyPrint.strip(str)
- Userdata Value: prettyPrint.stdin
- Userdata Value: prettyPrint.stdout
- Userdata Value: prettyPrint.stderr
Pretty print#
A lua value pretty printer and colorizer for terminals.
local prettyPrint = require('pretty-print')
prettyPrint.loadColors([index])#
Index lets you optionally pick a theme, 16 or 256.
Value: prettyPrint.theme#
Table of keys and values of the available themes
prettyPrint.print(...)#
Works like the default lua print function. We also override the default lua print function