๐จ Format Scripts
Img2Num enforces formatting for both JavaScript and C++/WASM code.
npm run formatโ
Runs:
npm run format-js && npm run format-wasm
This ensures consistent formatting across the entire repo.
npm run format-jsโ
Formats all JavaScript/TypeScript with Prettier:
prettier --write .
npm run format-wasmโ
Runs a custom WASM formatting script:
node scripts/format-wasm.js
This is where C++ formatting rules are applied.