toonx 1.0.0
toonx: ^1.0.0 copied to clipboard
Dart implementation of TOON (Token-Oriented Object Notation) - a compact format for LLMs with 30-60% fewer tokens than JSON.
1.0.0 #
- Initial release
encode()function to convert Dart objects to TOON formatdecode()function to parse TOON strings back to Dart objects- Custom delimiters support: comma, tab, and pipe
- Length marker option for array validation
- Custom indentation configuration
- Tabular array format for uniform objects
- Flat map mode for flattening nested structures
- Strict mode validation for decoding
- Lenient mode for best-effort parsing
- CLI tool for encoding and decoding files
- Stdin/stdout support for piping
- Auto-detection of format by file extension