Skip to content

evaluate EcmaScript expression safely (without eval() call)

Notifications You must be signed in to change notification settings

stomita/esformula

Repository files navigation

esformula CircleCI

Evaluate EcmaScript expression safely (without eval() call)

Install

$ npm install esformula

Usage

import { parse } from 'esformula';

const formula = parse('x * 2');
formula.evaluate({ x: 3 }) // => 6

About

evaluate EcmaScript expression safely (without eval() call)

Resources

Stars

Watchers

Forks

Packages