Have ideas to improve npm?Join in the discussion! »

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

    2.1.1 • 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

    Keywords

    none

    Install

    npm i esformula

    DownloadsWeekly Downloads

    6

    Version

    2.1.1

    License

    MIT

    Unpacked Size

    166 kB

    Total Files

    21

    Last publish

    Collaborators

    • avatar