# css-classes

> List CSS classes in text(s).

Latest version **1.0.0** (published 2016-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install css-classes
pnpm add css-classes
yarn add css-classes
bun add css-classes
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-02-23 |
| First published | 2016-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jouni Kantola |
| Maintainers | jouni-kantola |
| Keywords | css |

## Links

- npm: https://www.npmjs.com/package/css-classes
- Repository: https://github.com/jouni-kantola/css-classes
- Issues: https://github.com/jouni-kantola/css-classes/issues
- npm.io page: https://npm.io/package/css-classes

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-02-23

## README

# css-classes
List CSS classes in text(s).

## Usage
```javascript
const cssClasses = require("css-classes");
```
### Unique
```javascript
    const arr = [".a {} .b {}", ".a {} .c {}"];
    cssClasses(arr) // => ["a", "b", "c"]
    cssClasses(arr, false) // => ["a", "b", "c"]
    
    const text = ".a {} .b {} .a {} .c {}";
    cssClasses(text) // => ["a", "b", "c"]
    cssClasses(text, false) // => ["a", "b", "c"]
```
### Include duplicates
```javascript
    const arr = [".a {} .b {}", ".a {} .c {}"];
    cssClasses(arr, true) // => ["a", "b", "a", "c"]
    
    const text = ".a {} .b {} .a {} .c {}";
    cssClasses(text, true) // => ["a", "b", "a", "c"]
```

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