# @jdthornton/classnames

> Class string joining made easy

Latest version **1.0.1** (published 2021-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jdthornton/classnames
pnpm add @jdthornton/classnames
yarn add @jdthornton/classnames
bun add @jdthornton/classnames
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-12-17 |
| First published | 2021-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jake Thornton |
| Maintainers | jdthornton |

## Links

- npm: https://www.npmjs.com/package/@jdthornton/classnames
- Repository: https://github.com/jdthornton/classnames
- Homepage: https://github.com/jdthornton/classnames#readme
- Issues: https://github.com/jdthornton/classnames/issues
- npm.io page: https://npm.io/package/@jdthornton/classnames

## Recent versions

- 1.0.1 (latest) — 2021-12-17
- 1.0.0 — 2021-09-28

## README

# @jdthornton/classnames

[![npm (scoped)](https://img.shields.io/npm/v/@jdthornton/classnames.svg)](https://www.npmjs.com/package/@jdthornton/classnames)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@jdthornton/classnames.svg)](https://www.npmjs.com/package/@jdthornton/classnames)

Class string joining made easy.

## Install

```
$ npm install @jdthornton/classnames
```

## Usage

```js
import classNames from "@jdthornton/classnames";

function makeClass({ className, primary }){
  return classNames("container", primary && "primary", className)
}

console.log(makeClass({className: "card", primary: true}))

//=> "container primary card"
```

---
_Source: https://npm.io/package/@jdthornton/classnames · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
