This is a WASM glue library for calculating the NISECI and/or HFBI index for a dataset.
You can find templates for the input files in the templates folder.
Since this library is built with knowing that Excel uses some specific separators with the Italian locale, it supports two formats for input/output.
The format differences are:
- Italian:
- Input expects
;as csv field delimiter, and,can be used as float decimal delimiter
- Input expects
- International:
- Input expectes
,as csv field delimiter, and.as float decimal delimiter
- Input expectes
To build the pkg/.wasm file, run:
cargo install wasm-pack
wasm-pack build --target web`To test pkg/.wasm file, run:
python -m http.serverThis should start a server on http://0.0.0.0:8000 using the provided index.hmtl.