# height-sum-elements

> It gets sum height of elements.

Latest version **1.0.1** (published 2018-02-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install height-sum-elements
pnpm add height-sum-elements
yarn add height-sum-elements
bun add height-sum-elements
```

## 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.1 |
| Published | 2018-02-14 |
| First published | 2018-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | gothic-prince |

## Links

- npm: https://www.npmjs.com/package/height-sum-elements
- Repository: https://github.com/gothic-prince/height-sum-elements
- Homepage: https://github.com/gothic-prince/height-sum-elements#readme
- Issues: https://github.com/gothic-prince/height-sum-elements/issues
- npm.io page: https://npm.io/package/height-sum-elements

## Recent versions

- 1.0.1 (latest) — 2018-02-14
- 1.0.0 — 2018-02-14

## README

### About:

It gets sum height of elements. 

### Example:
```html
<div class="elem" style="height: 100px"></div>
<div class="elem" style="height: 200px"></div>
<div class="elem" style="height: 50px"></div>
<div class="elem" style="height: 150px"></div>
```

```javascript
import {
  nodeListToArrayElement,
  getClientHeightSumElements,
  getOffsetHeightSumElements,
  getScrollHeightSumElements
} from 'height-sum-elements'

const nodeList = document.getElementsByClassName('elem')
const elements = nodeListToArrayElement(nodeList)
getClientHeightSumElements(elements) //600
getOffsetHeightSumElements(elements) //600
getScrollHeightSumElements(elements) //600
```

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