Package
tokenx
Fast token estimation with 95%+ average accuracy in a 2kB bundle
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 1.3m
- +2030% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 month ago
- v2.1.0
- GitHub stars
- -
- Open issues / PRs
- - / -
- Contributors
- -
- Commits, last 52 weeks
- -
Downloads
Last week 2026-09-15 to 2026-09-21
1,331,114 downloads last week, 6,349,525 in the last month. The 12-month change of +2030% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 813 in total
- Latest version
- 2.1.0, 5 Aug 20261 month ago
- First published
- 11 Jun 2024
- Last push to GitHub
- -
- Repository archived
- -
- Open issues
- -
- Open pull requests
- -
- Commits, last 52 weeks
- -
- Dependents on npm
- 48
Major versions
- v2 first release 2.0.0, 29 Jul 2026
- v0 first release 0.4.0, 8 Jul 2024
- v1 first release 1.0.0, 11 Jun 2024
Recent releases
| Version | Published |
|---|---|
| 2.1.0 | 5 Aug 2026 |
| 2.0.0 | 29 Jul 2026 |
| 1.6.0 | 27 Jul 2026 |
| 1.5.0 | 27 Jul 2026 |
| 1.4.0 | 27 Jul 2026 |
| 1.3.0 | 22 Jan 2026 |
| 1.2.1 | 10 Nov 2025 |
| 1.2.0 | 16 Oct 2025 |
| 1.1.0 | 23 Jun 2025 |
| 1.0.1 | 2 Jun 2025 |
| 0.4.1 | 29 Nov 2024 |
| 0.4.0 | 8 Jul 2024 |
| 1.0.0 | 11 Jun 2024 |
- Module format
- -Not determined from package.json
- TypeScript types
- -
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- -
- Dependencies (0)
- None
npm install tokenx- jsDelivr
https://cdn.jsdelivr.net/npm/tokenx@2.1.0/ - unpkg
https://unpkg.com/tokenx@2.1.0/ - esm.sh
https://esm.sh/tokenx@2.1.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| shlex | 430.2k | - | 1 year ago | ESM only | - |
| yaml-lint | 177k | - | 4 years ago | CommonJS | - |
| @marp-team/marp-cli | 70k | - | 19 days ago | CommonJS | - |
| jsome | 18k | - | 8 years ago | CommonJS | - |
| md-to-pdf | 123k | - | 10 months ago | CommonJS | - |
| @sourcemeta/jsonschema | 64.9k | - | 3 days ago | CommonJS | - |
| ansicolor | 85.9k | - | 2 years ago | ESM + CommonJS | - |
| @trufflesuite/chromafi | 31.9k | - | 4 years ago | CommonJS | - |
Indexability: Not indexed (discovery only): GitHub data not fetched yet.