lmd-expression
v1.0.4
Published
Computes simple mathematical expressions. Supported operators : + - * /
Downloads
13
Readme
LMD-EXPRESSION
Gives features to evaluate simple mathematical expressions like "318-42".
This package can be used from JavaScript client side applications and NodeJS applications.
Installation
npm i lmd-expression
Using from NodeJS applications
const Computer = require("lmd-expression").default;
const computer = new Computer(); const result = computer.compute("318-42");
console.log(result);
Using from ES6 application
import Computer from "./expression-computer.js";
const computer = new Computer(); const result = computer.compute("318-42");
console.log(result);