DataDumper

Converts a Lua value into its expression as a string.

$ luarocks install datadumper

require 'DataDumper' ;
print( DataDumper(value[, varname, fastmode, indent]) )
The function has four parameters; only the first is mandatory.
It always returns a string, which is valid Lua code; executing
this will import back to a variable the complete structure
of the original. For simple structures, there is only one
Lua instruction (e.g. a table constructor), but some more
complex features will output a script with more instructions.

Versions

1.0-110 years ago4,887 downloads

Dependencies

lua >= 5.1, < 5.3

Labels

Manifests