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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    46,621
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    46,621
  • 0.0.3
    1,455
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i scope-eval

Weekly Downloads

39,597

Version

1.0.0

License

MIT

Last publish

Collaborators

  • alexdavid