luadata_cli-0.1.14 is not a library.
luadata (CLI)
Command-line tool for parsing Lua data files and converting to JSON. Useful for working with game addon data like World of Warcraft SavedVariables.
Install
Homebrew
brew install mmobeus/tap/luadata
Cargo
cargo install luadata_cli
Usage
# Convert a file
# Read from stdin
|
# Validate without converting
# With options
Options
| Flag | Description |
|---|---|
--empty-table <mode> |
How to render empty tables: null, omit, array, object |
--array-mode <mode> |
Array detection: sparse, index-only, none |
--array-max-gap <n> |
Max gap for sparse array detection (default: 20) |
--string-max-len <n> |
Max string length before transform is applied |
--string-mode <mode> |
String transform: truncate, empty, redact, replace |
--string-replacement <s> |
Replacement string (with --string-mode replace) |
See the full options documentation for details and examples.
Links
- Luadata by Example — guided tour with interactive examples
- Live Converter — try it in your browser
- GitHub