scope-eval

v1.0.0
Eval a string with a passed scope

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
npm i scope-eval

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 11/15/2016

Downloads

Maintainers