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

/scope-eval/

    Package Sidebar

    Install

    npm i scope-eval

    Weekly Downloads

    46,798

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • alexdavid