pro_self_extracting_wasm
v0.0.9
Published
`pro-self-extracting-wasm` is a CLI utility for compiling self-extracting WebAssembly executables for use in the browser.
Downloads
11,203
Readme
pro-self-extracting-wasm is a CLI utility for compiling self-extracting
WebAssembly executables for use in the browser.
Usage
Install the CLI compiler and runtime library
npm install pro-self-extracting-wasmCompile your target
npm exec pro_self_extracting_wasm ./my_assembly.wasm --output my_assembly.compressed.wasmUnzip the bundle in JavaScript
import {extract} from "pro-self-extracting-wasm";
const my_assembly = await extract(fetch("./my_assembly.compressed.wasm"));