raabbajam-calculator
v1.0.2
Published
Calculate infix expression of number and operator
Downloads
1
Readme
raabbajam-calculator
Install
npm i -S raabbajam-calculator
Usage
import calculate from 'raabbajam-calculator';
const text = '5 + ((1 + 2) * 4) - 3';
const result = calculate(text);
const expectedResult = 14;
assert.equal(result, expectedResult, 'return result');
License
MIT © Raabb Ajam