alexdavid / scope-eval

Eval a string with a passed scope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Eval a string with a passed scope

License:MIT License


Languages

Language:CoffeeScript 100.0%