Load and initialize the WebAssembly module synchronously.
This function uses the inlined WASM module (base64-encoded at build time) to enable synchronous initialization. This is useful for:
Trade-offs:
Backward compatible: This function works the same as the previous loadWASMSync().
loadWASMSync()
Optional
Optional custom initialization input. If not provided, uses inlined WASM.
import { loadWASMSync, parseStringToArraySyncWASM } from 'web-csv-toolbox';// Synchronous initializationloadWASMSync();// Now you can use sync APIs without awaitconst result = parseStringToArraySyncWASM(csv); Copy
import { loadWASMSync, parseStringToArraySyncWASM } from 'web-csv-toolbox';// Synchronous initializationloadWASMSync();// Now you can use sync APIs without awaitconst result = parseStringToArraySyncWASM(csv);
Load and initialize the WebAssembly module synchronously.
This function uses the inlined WASM module (base64-encoded at build time) to enable synchronous initialization. This is useful for:
Trade-offs:
Backward compatible: This function works the same as the previous
loadWASMSync().