surveyjs-expression-eval

1.0.2 • Public • Published

SurveyJS Expression Eval

This module allows you to evaluate expressions using the SurveyJS language.

import evaluateExpression from "surveyjs-expression-eval"
 
evaluateExpression("{myvar} > {myothervar}", {
  myvar: 2,
  myothervar: 1
})
// true

See format.md for more examples and a list of operators.

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i surveyjs-expression-eval

Weekly Downloads

12,217

Version

1.0.2

License

MIT

Unpacked Size

9.62 kB

Total Files

6

Last publish

Collaborators

  • seveibar