Overview of tiktoken packages
mainThe repository provides two main ways to use tiktoken in JavaScript environments:
tiktoken: WASM bindings for the original Python library. It provides full 1-to-1 feature parity with the Python version. Best for NodeJS and environments with full WASM support.js-tiktoken: A pure JavaScript port of the core functionality. Use this in environments where WASM is not supported or desired (e.g., certain edge runtimes).