# @datastructures-js/heap

> Min/Max Heap & Heap Sort implementation in javascript

Latest version **4.3.7** (published 2025-10-12) · MIT license · 503.3K weekly downloads

## Install

```sh
npm install @datastructures-js/heap
pnpm add @datastructures-js/heap
yarn add @datastructures-js/heap
bun add @datastructures-js/heap
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: moderate downloads; has types; no vulnerabilities; high quality score.

Warnings: no esm support.

## Facts

| | |
|---|---|
| Version | 4.3.7 |
| Published | 2025-10-12 |
| First published | 2019-12-16 |
| Weekly downloads | 503.3K |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 100 |
| Author | Eyas Ranjous |
| Maintainers | eyas-ranjous |
| Keywords | heap, min heap, min heap data structure, max heap, max heap data structure, heap js, heap data structure, heap es6, heap sort, heapify |

## Links

- npm: https://www.npmjs.com/package/@datastructures-js/heap
- Repository: https://github.com/datastructures-js/heap
- Homepage: https://github.com/datastructures-js/heap#readme
- Issues: https://github.com/datastructures-js/heap/issues
- npm.io page: https://npm.io/package/@datastructures-js/heap

## Recent versions

- 4.3.7 (latest) — 2025-10-12
- 4.3.6 — 2025-10-12
- 4.3.5 — 2025-08-27
- 4.3.3 — 2024-01-08
- 4.3.2 — 2023-06-20
- 4.3.1 — 2023-01-08
- 4.3.0 — 2023-01-08
- 4.2.2 — 2022-12-24
- 4.2.1 — 2022-12-23
- 4.2.0 — 2022-12-23
- 4.1.2 — 2022-09-05
- 4.1.1 — 2022-08-16
- 4.1.0 — 2022-05-30
- 4.0.2 — 2022-03-13
- 4.0.1 — 2022-03-09
- … 13 more at https://npm.io/package/@datastructures-js/heap/versions

## README

# @datastructures-js/heap

## Docs
https://datastructures-js.info/docs/heap

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