#wasm-module #analysis #resolution #byte #javascript #deno #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

#584 in WebAssembly

35 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

~275–730KB
~17K SLoC