{"library":"classcat","type":"library","category":null,"description":"Classcat is a minimalist, performant JavaScript utility for constructing HTML `class` attribute strings dynamically. It allows developers to combine strings, arrays, and objects (where keys are class names and values are booleans for conditional inclusion) into a single, space-delimited class string. The current stable version is 5.0.5, with releases occurring on an as-needed basis to address bug fixes, type improvements, and modernization efforts. Key differentiators include its small bundle size (217 B minified+gzipped), high performance (up to 2.5x faster than alternatives), and framework-agnostic nature, making it suitable for any JavaScript project, including those using React, Lit-HTML, or Mithril. Version 5.x introduced a shift to ES Modules as the primary distribution, modernizing the codebase and dropping some legacy support.","language":"javascript","status":"active","version":"5.0.5","tags":["javascript","classnames","classlist","class","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install classcat","imports":["import cc from 'classcat'","<script type=\"module\"> import cc from 'https://unpkg.com/classcat@5.0.5'; </script>"]},{"cmd":"yarn add classcat","imports":[]},{"cmd":"pnpm add classcat","imports":[]}],"homepage":"https://classcat.com","github":"https://github.com/jorgebucaran/classcat","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/classcat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/classcat/compatibility"}}