Quickstarts
JavaScript/WASM Quickstart
Initialize the WASM module and evaluate workbook formulas from JS.
1) Install
npm install formualizer2) Initialize and evaluate
import init, { Workbook } from "formualizer";await init();const wb = new Workbook();wb.addSheet("Sheet1");wb.setValue("Sheet1", 1, 1, 100);wb.setValue("Sheet1", 2, 1, 20);wb.setFormula("Sheet1", 1, 2, "=A1-A2");wb.evaluateAll();console.log(wb.evaluateCell("Sheet1", 1, 2)); // 803) Run the repo example
cd bindings/wasm
npm run build
node examples/custom-function-registration.mjs