1.0.2 • Published 1 year ago

mark_tools v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Intro

This is a package that can be used to calculate formulations in the following form(sth. like JSON):

  1. formula in String format
  2. data in the JSON format.

Usage

To use this package, follow the following steps:

  1. install the package using npm.

    npm install mark_tools
  2. import the package

    const evaluateFormula = require("mark_tools");
  3. use the evaluateFormula function to calculate the result.

    const evaluateFormula = require("mark_tools");
    
    const input = {
        formula: '(x+y)*z',
        data: {
            x: 0.1,
            y: 0.2,
            z: 1
        }
    };
    
    const result = evaluateFormula(input);
    console.log(result)

And after this example, you will be able to see the result 0.3 logged in the console.

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago