0.0.2 • Published 1 year ago

eval-math-expression v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eval-math-expression

Evaluate math expressions from String, Currently, only addition, subtraction, multiplication, and division are supported

Install

npm i eval-math-expression

Use

ES module:

import evalExpression from 'eval-math-expression'

evalExpression('1+2.12/3*(122+5/3)-2')

CommonJS:

const evalExpression = require('eval-math-expression').default

evalExpression('1+2.12/3*(122+5/3)-2')
0.0.2

1 year ago

0.0.1

1 year ago