inspect.lua
inspect.lua copied to clipboard
Human-readable representation of Lua tables
Hi, Thanks for providing such a wonderful library. I have created a custom plugin on kong in lua. I am using inspect library to log the whole request received from...
inspect can be slow with `{ depth = 1 }` on large tables because countCycles still fully processes the whole table. https://github.com/kikito/inspect.lua/blob/9c8a68da3033f1393b84b498313572654af82b8f/inspect.lua#L304-L314 cycles is only used to print the id...
The result of `inspect {{ x = 1 }}` is ```lua { { x = 1 } } ``` The indentation is not aligned, is this a special case or...
This PR includes 2 commits: The first one includes evaluation of `__tostring` for userdata values. This should be safe because `__tostring` of userdata is unlikely to recurse into `inspect`. A...
^ This would really be helpful in keeping long lines down.
Hello. First of all, I want to thank you for a wonderful lib that I've used for several years now. I've got an idea. Sometimes it's convenient to add "__tostring"...
Properly escape table string keys that are lua keywords. Backported from neovim/neovim#19898
in the example ```lua assert(inspect({ f = print, ud = some_user_data, thread = a_thread} ) == [[{ f = , u = , thread = }]]) ``` `u = `...
Hi was looking through this project (great library!) and noticed I think you accidentally left out a word or two in the README. This is probably not worth a whole...