ai_token_estimator 1.0.0 copy "ai_token_estimator: ^1.0.0" to clipboard
ai_token_estimator: ^1.0.0 copied to clipboard

AI Token Usage estimator as a runnable CLI

Simple CLI that utilizes the bpe package to scan code and output the estimated token count to a TOKEN_ESTIMATE.md file. Please note, these numbers are only estimates as the actual numbers vary by model. In general the numbers can be used as relative numbers to determine if one code base consumes more or less tokens than another, but should never be used as absolute values.

While this may work for other languages, it is designed and tested for Dart based code. By default, it only scans the dart files contained within the lib folders of the folder and sub folders. This can be overridden by changing the --pattern CLI arg.

Usage #

Installing

dart pub global activate ai_token_estimator

For help run:

ai_token_estimator --help
0
likes
50
points
96
downloads

Documentation

API reference

Publisher

verified publisherilt.run

Weekly Downloads

AI Token Usage estimator as a runnable CLI

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, bpe, embed_annotation, glob, intl, logging, path

More

Packages that depend on ai_token_estimator