formula-beidou
v1.0.2
Published
formula eval
Downloads
3
Readme
使用说明
计算四则表达式(支持加减乘除括号、支持整数/小数)
const Formula = require('formula-beidou');
Formula.eval({
formula: "x * (y - z)",
data: {
x: 1,
y: 2,
z: 3
}
});
测试
npm test