toonx 1.2.0
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 toonxUse 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 toonxThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
toonx: ^1.2.0Alternatively, 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';