# dom-add-class

> Add classes to a given element or set of elements

Latest version **0.1.7** (published 2015-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install dom-add-class
pnpm add dom-add-class
yarn add dom-add-class
bun add dom-add-class
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2015-08-23 |
| First published | 2015-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Roy Riojas |
| Maintainers | royriojas |
| Keywords | add class, dom, add classes, dom add classes |

## Links

- npm: https://www.npmjs.com/package/dom-add-class
- Repository: https://github.com/royriojas/dom-add-class
- Homepage: https://github.com/royriojas/dom-add-class#readme
- Issues: https://github.com/royriojas/dom-add-class/issues
- npm.io page: https://npm.io/package/dom-add-class

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.7 (latest) — 2015-08-23
- 0.1.6 — 2015-08-23

## README

[![NPM Version](http://img.shields.io/npm/v/dom-add-class.svg?style=flat)](https://npmjs.org/package/dom-add-class)
[![Build Status](http://img.shields.io/travis/royriojas/dom-add-class.svg?style=flat)](https://travis-ci.org/royriojas/dom-add-class)

# dom-add-class
Add classes to a given element or set of elements

## Install

```bash
npm i --save dom-add-class
```

## Usage

```javascript
var addClass = require('dom-add-class');
var sektor = require('sektor');
var boxes = sektor('.box');

// add several classes
// to several elements
addClass(box, 'demo class added');

// won't add duplicated classes
addClass(box, 'repeated repeated classes'); // will only add 'repeated classes'
```

## License

[MIT](./LICENSE)

## [Changelog](./changelog.md)

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