# js-match-height

> Dependency-free vanilla js plugin to match element heights, in a tiny file (2kb).

Latest version **1.0.7** (published 2019-06-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install js-match-height
pnpm add js-match-height
yarn add js-match-height
bun add js-match-height
```

## 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.7 |
| Published | 2019-06-14 |
| First published | 2019-04-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Peter Arevalo |
| Maintainers | petegarevalo |
| Keywords | match, height, jquery, vanilla |

## Links

- npm: https://www.npmjs.com/package/js-match-height
- Repository: https://github.com/PeteyRev/js-match-height
- Homepage: https://github.com/PeteyRev/js-match-height#readme
- Issues: https://github.com/PeteyRev/js-match-height/issues
- npm.io page: https://npm.io/package/js-match-height

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2019-06-14
- 1.0.6 — 2019-06-14
- 1.0.5 — 2019-06-13
- 1.0.4 — 2019-06-13
- 1.0.3 — 2019-04-27
- 1.0.1 — 2019-04-27
- 1.0.0 — 2019-04-27

## README

# js-match-height

Dependency-free vanilla js plugin to match element heights, in a tiny file (2kb).

## Getting Started

```
npm i js-match-height --save
```

### Use

Import the library and simply instatiate with your elements, no options required. MatchHeight will correct heights if needed on window resize, using a debounce method to improve performance. 

```
import { MatchHeight } from 'js-match-height';
```

Pass your elements. 

```
const matchHeight = new MatchHeight('ul.list-items  li');
```

The timeout for the debounce method is defaulted at 250. You can set your time if needed. 

```
const matchHeight = new MatchHeight('ul.list-items  li', { timeout:400 });
```

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details

## Acknowledgments

* jquery match height

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