# wasmparser

> Binary WebAssembly file parser.

Latest version **5.11.1** (published 2024-07-29) · Apache-2.0 license · 0 weekly downloads

## Install

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

Provides the command `disassemble-wasm`.

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.11.1 |
| Published | 2024-07-29 |
| First published | 2016-11-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 82 |
| Author | Yury Delendik |
| Maintainers | yurydelendik, mbebenita, bmeurer |

## Links

- npm: https://www.npmjs.com/package/wasmparser
- Repository: https://github.com/wasdk/wasmparser
- Homepage: https://github.com/wasdk/wasmparser#readme
- Issues: https://github.com/wasdk/wasmparser/issues
- npm.io page: https://npm.io/package/wasmparser

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) ^18.16.3

## Recent versions

- 5.11.1 (latest) — 2024-07-29
- 5.11.0 — 2024-03-15
- 5.10.0 — 2024-03-14
- 5.9.0 — 2023-11-16
- 5.8.0 — 2023-09-28
- 5.7.0 — 2023-06-16
- 5.6.0 — 2023-05-19
- 5.5.0 — 2023-05-12
- 5.4.0 — 2021-10-12
- 5.3.0 — 2021-09-20
- 5.2.0 — 2021-05-31
- 5.1.1 — 2021-04-26
- 5.1.0 — 2021-04-15
- 5.0.2 — 2021-03-25
- 5.0.1 — 2021-03-04
- … 85 more at https://npm.io/package/wasmparser/versions

## README

[![Build Status](https://travis-ci.org/wasdk/wasmparser.svg?branch=master)](https://travis-ci.org/wasdk/wasmparser)
[![NPM version](https://img.shields.io/npm/v/wasmparser.svg)](https://www.npmjs.com/package/wasmparser)

Simple streamable WebAssembly binary parser.

## Test

### Compiling Code

```
npm run build
```

### Examples

See the `examples/` folder.

### Running Tests

```
npm test
```

### Creating Tests

Test `.wasm` files are located in the `test/__fixtures__` directory.
The testing harness compares the parsing output of the `.wasm` file against the snapshot file.
You can use the `npm test -- --updateSnapshot` command to update the snapshot file. This is useful if you have made a change that affects the tests.

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