npm.io
0.1.8 • Published 2d ago

esox_wasm

Licence
GPL-3.0-only
Version
0.1.8
Deps
0
Size
460 kB
Vulns
0
Weekly
0
Stars
1

esox_wasm

Latest crates.io version Latest npm version

WASM glue library for NISECI and HFBI calc

Table of Contents

What is this thing?

This is a WASM glue library for calculating the NISECI and/or HFBI index for a dataset, based on esox.

Input templates

You can find templates for the input files in the templates folder.

Locale

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
  • International:
    • Input expectes , as csv field delimiter, and . as float decimal delimiter

Building

To build the pkg/.wasm file, run:

    cargo install wasm-pack
    wasm-pack build --target web`

Testing

To test pkg/.wasm file, run:

    python -m http.server

This should start a server on http://0.0.0.0:8000 using the provided index.hmtl.

References