Socket
Socket
Sign inDemoInstall

better-eval

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.5 to 1.2.6

2

package.json
{
"name": "better-eval",
"version": "1.2.5",
"version": "1.2.6",
"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",

@@ -82,8 +82,4 @@ # 🔧 better-eval

Nested variables (in development):
> Remember: **never use better-eval blindly with user-code.** These checks are precautions for your own usage, but any user with maltious intent could find a way to get through them. Thus, use this package with caution.
```js
betterEval("triedtohack.eval(1+1)", { triedtohack: { eval } }); // triedtohack.eval is null;
```
## Configuring the VM

@@ -90,0 +86,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc