npm package
Homeclsx
clsx is a tiny utility for conditionally constructing className strings, ideal for managing dynamic class assignments in applications. It serves as a faster and smaller alternative to the classnames module, making it suitable for projects that require efficient class handling. With support for various input types, it simplifies the process of building class strings based on conditions.
- lurq health score
- 53/100
- Confidence
- unproven
- Weekly downloads
- 89,977,564
- Latest version
- 2.1.1
- Last release
- Apr 23, 2024
- License
- MIT
Should you depend on clsx?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks clsx at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Upgrading clsx
What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.
- 1.2.1 → 2.1.1being extracted
- 0.0.1 → 1.2.1being extracted
Other styling packages lurq scores
- @mui/private-theming94/100 · proven
- @mui/system93/100 · proven
- remeda92/100 · proven
- @internationalized/number91/100 · proven
- electron91/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 21, 2026; this page refreshes every 168 hours. Source repository.