Package
classnames
A simple utility for conditionally joining classNames together
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 24m
- +61% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 2 years ago
- v2.5.1
- GitHub stars
- 17.8k
- 558 forks
- Open issues / PRs
- 4 / 8
- Contributors
- -
- Commits, last 52 weeks
- 34
Downloads
Last week 2026-09-15 to 2026-09-21
23,979,004 downloads last week, 118,169,992 in the last month. The 12-month change of +61% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 030 in total
- Latest version
- 2.5.1, 29 Dec 20232 years ago
- First published
- 5 Nov 2014
- Last push to GitHub
- 23 Sept 20262 days before the snapshot
- Repository archived
- No
- Open issues
- 4
- Open pull requests
- 8
- Commits, last 52 weeks
- 34
- Dependents on npm
- 45,615
Major versions
- v2 first release 2.0.0, 3 May 2015
- v1 first release 1.0.0, 5 Nov 2014
Recent releases
| Version | Published |
|---|---|
| 2.5.1 | 29 Dec 2023 |
| 2.5.0 | 28 Dec 2023 |
| 2.4.0 | 26 Dec 2023 |
| 2.3.3 | 25 Dec 2023 |
| 2.3.2 | 13 Sept 2022 |
| 2.3.1 | 2 Apr 2021 |
| 2.3.0 | 1 Apr 2021 |
| 2.2.6 | 8 Jun 2018 |
| 2.2.5 | 2 May 2016 |
| 2.2.4 | 25 Apr 2016 |
| 2.2.3 | 5 Jan 2016 |
| 2.2.2 | 4 Jan 2016 |
| 2.2.1 | 26 Nov 2015 |
| 2.2.0 | 18 Oct 2015 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 23 kB
- Dependencies (0)
- None
npm install classnamesCDN
jsDelivr: 3.8m requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/classnames@2.5.1/ - unpkg
https://unpkg.com/classnames@2.5.1/ - esm.sh
https://esm.sh/classnames@2.5.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| clsx | 90.3m | - | 2 years ago | ESM + CommonJS | - |
Indexability: Indexed.