esformula
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i esformula

Weekly Downloads

263

Version

3.0.0

License

MIT

Unpacked Size

171 kB

Total Files

20

Last publish

Collaborators

  • stomita