Baike.dev
All toolsTrendingOpen sourceNewsSubmit
Log in
< 返回工具列表
C

classnames

> 编程语言
开源

A simple javascript utility for conditionally joining classNames together

17.8K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

A simple javascript utility for conditionally joining classNames together

# Classnames > A simple JavaScript utility for conditionally joining classNames together.

Install from the [npm registry](https://www.npmjs.com/) with your package manager: ```bash npm install classnames ``` Use with [Node.js](https://nodejs.org/en/), [Browserify](https://browserify.org/), or [webpack](https://webpack.github.io/): ```js const classNames = require('classnames'); classNames('foo', 'bar'); // => 'foo bar' ``` Alternatively, you can simply include `index.js` on your page with a standalone `

核心特点

  • •JavaScript

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言