npm.io
1.0.0 • Published 10 years ago

scope-eval

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
2

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