@source-health/formula
v1.0.2-alpha.0
Published
Zero-dependency package for parsing and evaluating user-supplied formulas
Downloads
80
Keywords
Readme
Formula
Zero-dependency package for parsing and evaluating user-supplied formulas.
Getting Started
In the terminal:
yarn install @source-health/formula
Then, simply:
import { engine } from '@source-health/formula'
const result = engine.evaluate('x + 3', {
x: 1
})
console.log(result) // 4