Skip to content

mah0x211/lua-dump

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

lua-dump

convert lua data to string.


Installation

luarocks install dump

str = dump( val [, indent [, padding [, filter [, udata]]]] )

returns the stringified value.

Parameters

  • val:any: any data.
  • indent:uint: insert indent into the output for readability purposes.
  • padding:uint: insert whitespace to head of output for readability purposes.
  • filter:function: filter function
  • udata:any: pass to last argument of filter function.

Returns

  • str:string: the stringified value

Fitler Function

val, nodump = filter( val, depth, typ, use, key, udata )

Parameters

  • val:any: any data.
  • depth:uint: depth of nesting.
  • typ:string: type of val.
  • use:string: use for; 'key', 'val' or 'circular'.
  • key: key data of val.
  • udata:any: pass to last argument of filter function.

Returns

  • val:any: filtered value.
  • nodump:boolean: no dump a return value if true (default: false)

About

convert lua data to string.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages