4
0
Fork
You've already forked df-serialize
0
The brainless Lua table serialization library.
  • Lua 100%
Find a file
2022年09月06日 11:13:37 +02:00
spec [*] Initial commit. 2022年08月09日 13:35:44 +02:00
.gitignore [.gitignore] Add ldoc output directory to ignored files 2022年08月09日 13:34:19 +02:00
df-serialize-scm-1.rockspec [rockspec] Fix syntax. 2022年08月10日 16:17:05 +02:00
init.lua [init] Respect mode parameter for subtables. 2022年09月06日 11:13:37 +02:00
LICENSE [LICENSE] Improve license. 2022年08月09日 13:35:01 +02:00
README.md [README] Update library name, improve ldoc documentation. 2022年08月10日 09:25:47 +02:00

df-serialize - A brainless Lua table serializer

df-serialize provides two functions:

  • pack() packs Lua tables to string.
  • unpack() unpacks a string back to a Lua table.

The implementation strives to be useful under the majority of reasonable use cases, to be compact, understandable and sufficiently fast. There is no pretense of complete generality, nor of absolute efficiency. In case df-serialize does not exactly meet your requirements, its code should be immediate enough to tweak to your needs.

Documentation

Code is documented with LDoc.

Documentation may be generated running the command:

ldoc init.lua

ldoc generates a doc directory, open doc/index.html with your favorite browser to read the documentation.

Test suite

The test suite uses busted.

Tests may be run with the command:

lua spec/serialize_spec.lua

License

See LICENSE for details.