toonx 1.0.0 copy "toonx: ^1.0.0" to clipboard
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 format
  • decode() 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
2
likes
0
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

Dart implementation of TOON (Token-Oriented Object Notation) - a compact format for LLMs with 30-60% fewer tokens than JSON.

Repository (GitHub)
View/report issues

Topics

#toon #llm #json #token-efficiency #serialization

License

unknown (license)

Dependencies

flutter

More

Packages that depend on toonx