0.4.1 • Published 3 years ago

wasm-calc v0.4.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Wasm-calc

This Project is a wraper around the Engine which scans & parses a math expression from string format to the result of the expression.

Usage

import("wasm-calc").then((calc) => {
  try {
    const result = calc.calculate("1 + 1");
    // returns 3 :).. Just kidding, result =  2
  } catch (error) {}
});

Return type

We get back a

Result<f64, JsValue>

which in JS translates to number | Error(string), hence the need for a try catch.

Improvements to be made & TODOS

  • Shrink size of the wasm file.

This wasm module has been Built with 🦀🕸

0.4.1

3 years ago

0.4.0

3 years ago

0.3.5

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago