#wasm-module #analysis #resolution #javascript #deno #byte #typescript

wasm_dep_analyzer

Wasm module dependency analysis for module resolution

3 releases (breaking)

new 0.2.0 Nov 22, 2024
0.1.0 Feb 5, 2024
0.0.1 Feb 1, 2024

#144 in WebAssembly

Download history 5/week @ 2024-09-20 2/week @ 2024-09-27 1/week @ 2024-10-04 37/week @ 2024-10-25 30/week @ 2024-11-01 4/week @ 2024-11-08 912/week @ 2024-11-15

993 downloads per month
Used in 29 crates (2 directly)

MIT license

23KB
678 lines

wasm_dep_analyzer

An extremely lightweight Wasm module parser used in Deno to get the dependencies of a Wasm module from its bytes for the purpose of ECMAScript module resolution and TypeScript type checking.

let deps = WasmDeps::parse(&wasm_module_bytes, ParseOptions::default())?;

eprintln!("{:#?}", deps.imports);
eprintln!("{:#?}", deps.exports);

Dependencies

~0.3–0.8MB
~19K SLoC