npm install @atom-platform/expr-eval Basic Usage const Parser = require('@atom-platform/expr-eval').Parser; const parser = new Parser(); let expr = parser.parse('2 * x + 1'); console.log(expr.evaluate({ x: 3 })); // 7 // or Parser.evaluate('6 * x', { x: 7 }) //...
npm Search Sign UpSign In Search results 6 packages found Sort by: Default Default Most downloaded this week Most downloaded this month Most dependents Recently published eval-estree-expression Safely evaluate JavaScript (estree) expressions, sync and async. ...
Merge pull request#252from 418sec/1-npm-expr-eval Browse filesBrowse the repository at this point in the history Security Fix for Prototype Pollution - huntr.dev Loading branch information silentmattcommittedOct 11, 2021 2 parentsa556e27+3679a4dcommit6e889e0 ...
This is a modified version ofhttps://github.com/silentmatt/expr-eval这是基于Matthew Crumley的expr-eval修改而成。 Description 处理数学表达式和有限的字符串、日期 支持的运算符、函数见后表 安装 npm install @nbxx/nb-expr-eval 基本用法 varParser=require('@nbxx/nb-expr-eval').Parser;varparser=new...