We do a trick I am not proud of. Because all of our errors are Strings, we don't have a way to separate a name error from an index error, for instance. What I do in prepend the error with a string that indicates where it comes from.
IronCalc Web bindings
This crate is used to build the web bindings for IronCalc. Note that it does not contain the xlsx writer and reader, only the engine.
https://www.npmjs.com/package/@ironcalc/wasm?activeTab=readme
Building
Dependencies:
- Rust
- wasm-pack
- TypeScript
- Python
- binutils (for make)
make
Testing
Right now this is a manual process and only carries out a smoke test:
- Build the package
- Run
python -m http.server - In your browser open http://0.0.0.0:8000/test.html
Publishing
Follow the commands:
wasm-pack login
make
cd pkg
npm publish --access=public