# heapdump-cleanup

> Postprocess a Node heap snapshot to remove all `WeakMap` strong edges to make it easier to trace the path from a suspected leaked object to the GC root.

Latest version **0.0.3** (published 2020-07-27) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install heapdump-cleanup
pnpm add heapdump-cleanup
yarn add heapdump-cleanup
bun add heapdump-cleanup
```

Provides the command `heapdump-cleanup`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-07-27 |
| First published | 2020-01-31 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | ESM |
| Node | >= 12.7.0 |
| Dependencies | 3 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Maintainers | dnachev |

## Links

- npm: https://www.npmjs.com/package/heapdump-cleanup
- Repository: https://github.com/dnachev/heapdump-cleanup
- Homepage: https://github.com/dnachev/heapdump-cleanup#readme
- Issues: https://github.com/dnachev/heapdump-cleanup/issues
- npm.io page: https://npm.io/package/heapdump-cleanup

## Dependencies (3)

- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [stream-json](https://npm.io/package/stream-json.md) ^1.3.3
- [stream-chain](https://npm.io/package/stream-chain.md) ^2.2.1

## Recent versions

- 0.0.3 (latest) — 2020-07-27
- 0.0.2 — 2020-01-31
- 0.0.1 — 2020-01-31

## README

# heapdump-cleanup

Postprocess a Node heap snapshot to remove all `WeakMap` strong edges
to make it easier to trace the path from a suspected leaked object to the GC root.

## Usage
```
npx heapdump-cleanup <input> <output>
```

## Limitations
The script reads the entire heapdump in memory for processing. The read and write
are streamed and it works on top of the raw snapshot structure, so it only requires
enough memory to keep the raw snapshot data in memory, but it may still choke on
larger heapdumps.

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