# 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 `