1.0.0 • Published 5 years ago
eval-with v1.0.0
eval-in
const evalWith = require('eval-with')
evalWith('foo', {foo: true}) // returns true
evalWith('bar', {bar: 'str'}) // returns "str"
evalWith('bar', {foo: true}) // throws "bar is not defined"
1.0.0
5 years ago