df-serialize/README.md

41 lines
948 B
Markdown
Raw Normal View History

2022-08-09 13:35:44 +02:00
serialize - A brainless Lua table serializer
============================================
2022-08-09 13:44:45 +02:00
2022-08-09 13:35:44 +02:00
**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 **serialize** does not meet exactly your requirements, the code
should be immediate enough to tweak to your needs.
Documentation
=============
Code is documented with [LDoc](https://github.com/lunarmodules/LDoc).
Documentation may be generated running the command:
```sh
ldoc init.lua
```
Test suite
==========
The test suite uses [busted](https://olivinelabs.com/busted/).
Tests may be run with the command:
```sh
lua spec/serialize_spec.lua
```
License
=======
See [LICENSE](LICENSE) for details.