Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

calcformula

himanoa1MIT0.0.1

formula string -> Number

readme

calcFormula

This module receives the calculation formula and returns the calculation resultformula returned calculation result.

Install

npm install calcformula

Example

var calcFormula = require('calcformula');
calcFormula.calcFormula('2 + 1') // result 3

licence

MIT