Tokmeter lets you quickly count tokens…

Tokmeter lets you quickly count tokens from the command line:

# Count tokens in files
tokmeter file1.txt file2.js

# Count tokens in text
tokmeter "Hello, world!"

# Count tokens from stdin
echo "Hello, world!" | tokmeter

https://www.npmjs.com/package/tokmeter

This post and comments are published on Nostr.