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

wasm_dep_analyzer

Wasm module dependency analysis for module resolution

2 unstable releases

0.1.0 Feb 5, 2024
0.0.1 Feb 1, 2024

#352 in WebAssembly

Download history 76/week @ 2024-01-30 1/week @ 2024-02-13 9/week @ 2024-02-20 30/week @ 2024-02-27 2/week @ 2024-03-26 24/week @ 2024-04-02 89/week @ 2024-04-23

89 downloads per month

MIT license

23KB
677 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

~320–780KB
~18K SLoC