expr-eval icon indicating copy to clipboard operation
expr-eval copied to clipboard

Mathematical expression evaluator in JavaScript

Results 59 expr-eval issues
Sort by recently updated
recently updated
newest added

Hi all, I'm checking to confirm if the most current version of expr-eval is published to npm? - Last version appears to have been published 2-years ago, according to npm...

Hi. I'm trying to use BigInt instead of regular numbers. I did what the answer in #198 but since a, b are still parsed as number so it's limited by...

If I have a case where the expression is always evaluated against an object containing a specific list of variables, what would be the intended way to sanitize the passed...

Right now, the `random()` function is just the built-in `Math.random()` from the environment. It might be useful to use a deterministic, seedable generator. Some thought needs to go into how...

enhancement
function

Use the latest version and write the following code: `Parser.evaluate('in1["key"]', { in1: { key: 'value' } });` I expect the above code to output "value", but got `undefined` Can you...

Currently if you try to evaluate an expression without providing a value for all the variables, the library throws an exception. In my situation I wanted to have smallest conditional...

I have found a possible prototype pollution vuln in this package. With speficific input attckers can define properties on prototype, which will lead to prototype pollution. Also I have made...

Minor changes to make the type definitions more accurate Add `operators.array` to `ParserOptions` Add types for `Parser.unaryOps`, `Parser.functions`, and `Parser.consts` Add boolean and array to `Value` type, since `evaluate` can...

This adds docs to the README that you can disable arrays with the `array` operator and function definitions with the `fndef` operator.