1.0.7 • Published 6 years ago
math-expression v1.0.7
math-expression
Easy, safe, ultra light
Actual source is smaller than a half kilobyte!
Usage
const mathexpression = require("math-expression");
// Asynchronous function
(async () => {
let result = await mathexpression('1+1')
.catch(e => console.log(e));
console.log(result);
})();
// Synchronous function
(() => {
let result = mathexpression('1+1')
.then(r => console.log(r))
.catch(e => console.log(e));
})();