init
init(
input?):Promise<void>
Loads the base WebAssembly module (fetched next to the package); with { text: true }, the text
module too. Idempotent: later calls return at once (or load the text module). Everything else
in the package is synchronous and needs this promise to have resolved.
Parameters
Section titled “Parameters”input?
Section titled “input?”where the base module comes from (a URL, Response, bytes or
WebAssembly.Module), or options; omitted, the file next to the package.
Returns
Section titled “Returns”Promise<void>
Example
Section titled “Example”await init(); // or: await init({ text: true })