File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ pnpm test
150150See the [examples](./examples/) directory for complete usage examples:
151151
152152- ` index.html` - Interactive web demo with file upload
153- - ` usage.js ` - Comprehensive JavaScript examples
153+ - ` usage.mjs ` - Comprehensive JavaScript examples
154154
155155For the web version, run:
156156
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import path from 'path'
1111// Import the WASM module
1212// Note: In a real project, you would install from npm and import normally:
1313// import { parseReplay, version } from '@shieldbattery/broodrep';
14- import { parseReplay , version } from '../pkg-node/broodrep_wasm.js'
14+ import { init , parseReplay , version } from '../pkg-node/broodrep_wasm.js'
15+
16+ // Initialize the WASM module
17+ await init ( )
1518
1619/**
1720 * Example 1: Basic replay parsing
You can’t perform that action at this time.
0 commit comments