scope-eval

    1.0.0 • Public • Published

    scope-eval

    Eval a string with a passed scope

    Example:

    scopeEval = require('scope-eval')
     
    scopeEval("a + b + c", {
      a: 1,
      b: 2,
      c: 3
    }) // Returns 6

    Keywords

    none

    Install

    npm i scope-eval

    DownloadsWeekly Downloads

    33,797

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • alexdavid