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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i scope-eval

    Weekly Downloads

    77,697

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • alexdavid