formula-runner
v0.1.3
Published
formula-runner.
Downloads
1
Readme
formula-runner
Installation
$ npm install formula-runner
# or yarn
$ yarn add formula-runner
Usage
import { run } from "formula-runner";
const context = {
maxValue: 100,
};
const options = {
functions: {
MIN: Math.min,
},
};
run("SUM(1,2,IF(true,10,maxValue))", context);
// result: 13