better-eval
Advanced tools
Comparing version 1.2.4 to 1.2.5
{ | ||
"name": "better-eval", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "🔧 An alternative to the 'eval' function in JavaScript that is faster, easier/better to use, and has less security issues.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -66,13 +66,14 @@ # 🔧 better-eval | ||
- global | ||
- process | ||
- module | ||
- require | ||
- document | ||
- window | ||
- Window | ||
- eval | ||
- Function | ||
- `global` | ||
- `process` | ||
- `module` | ||
- `require` | ||
- `document` | ||
- `window` | ||
- `Window` | ||
- `eval` | ||
- `Function` | ||
Here is how they will be handled: | ||
```js | ||
@@ -82,2 +83,8 @@ betterEval("`Sum is ${eval('1+1')}`", { eval }); // eval is null! | ||
Nested variables (in development): | ||
```js | ||
betterEval("triedtohack.eval(1+1)", { triedtohack: { eval } }); // triedtohack.eval is null; | ||
``` | ||
## Configuring the VM | ||
@@ -89,4 +96,3 @@ | ||
betterEval( | ||
"1+1", | ||
{}, | ||
"1+1", {}, | ||
{ | ||
@@ -103,2 +109,2 @@ fileName: "counting", | ||
better-eval is [MIT-licensed](LICENSE) open-source software created by Bharadwaj Duggaraju. | ||
**better-eval** is [MIT-licensed](LICENSE) open-source software created by Bharadwaj Duggaraju. |
9238
107