{"library":"binaryen","type":"library","category":null,"description":"Binaryen.js provides prebuilt browser and Node.js binaries of Binaryen, a compiler infrastructure and toolchain library for WebAssembly. Version 129.0.0 is the latest stable release; the project follows Binaryen releases closely. It optimizes Wasm modules, performs transformations (e.g., inlining, dead code elimination), and validates/parses Wasm. Key differentiators: it works entirely in JavaScript with no native dependencies, making it suitable for web build pipelines, and it supports both ESM and CommonJS. Compared to wasm-opt CLI, it enables programmatic Wasm optimization in Node.js or browser bundlers.","language":"javascript","status":"active","version":"129.0.0","tags":["javascript","webassembly","wasm","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install binaryen","imports":["import Binaryen from 'binaryen'","import Binaryen from 'binaryen'; const mod = new Binaryen.Module()","import Binaryen from 'binaryen'; const wasmBuffer = Binaryen.readBinary(new Uint8Array([...]))"]},{"cmd":"yarn add binaryen","imports":[]},{"cmd":"pnpm add binaryen","imports":[]}],"homepage":null,"github":"https://github.com/AssemblyScript/binaryen.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/binaryen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}