# describe-wasm

> Reads the interface info (imports, exports, and signatures) from a wasm file.

Latest version **0.1.5** (published 2017-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install describe-wasm
pnpm add describe-wasm
yarn add describe-wasm
bun add describe-wasm
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2017-12-08 |
| First published | 2017-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kris Selden |
| Maintainers | krisselden |
| Keywords | wasm, reader, imports, exports, types |

## Links

- npm: https://www.npmjs.com/package/describe-wasm
- Repository: https://github.com/krisselden/describe-wasm
- Homepage: https://github.com/krisselden/describe-wasm#readme
- Issues: https://github.com/krisselden/describe-wasm/issues
- npm.io page: https://npm.io/package/describe-wasm

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2017-12-08
- 0.1.4 — 2017-12-07
- 0.1.3 — 2017-12-07
- 0.1.2 — 2017-12-06
- 0.1.1 — 2017-12-06

## README

# describe-wasm

Reads the interface info (imports, exports, and their signatures) from a wasm file.

Useful for generating type declarations.

```ts
function describeWasm(wasmbuffer: Uint8Array): WasmInfo;
```

## Example
```js
import * as fs from "fs";
import describeWasm from "describe-wasm";

const wasmInfo = describeWasm(fs.readFileSync("mylib.wasm"));

console.log(JSON.stringify(wasmInfo, null, 2));
```

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