1.0.0 • Published 8 years ago

scope-eval v1.0.0

Weekly downloads
11,813
License
MIT
Repository
github
Last release
8 years ago

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