# dom7

> Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API

Latest version **4.0.6** (published 2023-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install dom7
pnpm add dom7
yarn add dom7
bun add dom7
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.6 |
| Published | 2023-02-02 |
| First published | 2017-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 285 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 163 |
| Author | Vladimir Kharlampidi |
| Maintainers | nolimits4web |
| Keywords | dom, dom7, jquery, mobile, framework7 |

## Links

- npm: https://www.npmjs.com/package/dom7
- Repository: https://github.com/nolimits4web/dom7
- Homepage: https://framework7.io/docs/dom7.html
- Issues: https://github.com/nolimits4web/dom7/issues
- npm.io page: https://npm.io/package/dom7

## Dependencies (1)

- [ssr-window](https://npm.io/package/ssr-window.md) ^4.0.0

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

- 4.0.6 (latest) — 2023-02-02
- 4.0.0-beta.3 (beta) — 2021-08-04
- 3.0.0-alpha.10 (next) — 2020-11-07
- 4.0.5 — 2023-02-02
- 4.0.4 — 2022-01-11
- 4.0.3 — 2022-01-11
- 4.0.2 — 2021-12-13
- 4.0.1 — 2021-10-27
- 4.0.0 — 2021-08-25
- 4.0.0-beta.2 — 2021-08-04
- 4.0.0-beta.1 — 2021-07-22
- 3.0.0 — 2020-11-09
- 3.0.0-alpha.9 — 2020-08-25
- 3.0.0-alpha.8 — 2020-08-24
- 3.0.0-alpha.7 — 2020-07-14
- … 25 more at https://npm.io/package/dom7/versions

## README

# Dom7

### Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API

Dom7 - is the default DOM manipulation library built-in [Framework7](https://framework7.io). It utilizes most edge and high-performance methods for DOM manipulation. You don’t need to learn something new, its usage is very simple because it has the same syntax as well known jQuery library with support of the most popular and widely used methods and jQuery-like chaining.

See [Framework7 Dom7](https://framework7.io/docs/dom7.html) documentation for usage examples and available methods.

## Installation

Dom7 can be installed with NPM:

```
npm install dom7 --save
```

## Usage

```js
// import Dom7 and methods you need
import { $, addClass, removeClass, toggleClass, on } from 'dom7';

// install methods
$.fn.addClass = addClass;
$.fn.removeClass = removeClass;
$.fn.toggleClass = toggleClass;
$.fn.on = on;

// use
$('p').addClass('custom-paragraph');

$('p').on('click', function() {
  $(this).toggleClass('custom-paragraph');
});
```

## Documentation

See [full documenation here](https://framework7.io/docs/dom7.html)

## Contribution

Yes please! See the [contributing guidelines](https://github.com/nolimits4web/dom7/blob/master/CONTRIBUTING.md) for details.

## Licence

This project is licensed under the terms of the [MIT license](https://github.com/nolimits4web/dom7/blob/master/LICENSE).

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