toonx 1.2.0 copy "toonx: ^1.2.0" to clipboard
toonx: ^1.2.0 copied to clipboard

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

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate toonx

Use it

The package has the following executables:

$ toonx

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add toonx

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  toonx: ^1.2.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:toonx/toonx.dart';
2
likes
150
points
80
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. Supports JSON, YAML, and XML conversion.

Repository (GitHub)
View/report issues

Topics

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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, xml2json, yaml

More

Packages that depend on toonx