{"library":"eval","type":"library","category":null,"description":"The `eval` package for Node.js provides a mechanism to evaluate JavaScript code strings as if they were standalone modules loaded via `require()`, but without necessitating a file path. It leverages Node.js's built-in `vm` module to create a sandboxed environment for execution. This allows developers to programmatically load and execute module content from non-standard locations or inject custom contexts and scopes into the evaluated code. A key feature is the ability to control access to global variables, including `require()` itself, through an `includeGlobals` option. The package is currently at version 0.1.8, indicating a very mature or, more likely, an inactive development status. Its release cadence is effectively dormant. It differentiates itself from a simple `eval()` by mimicking Node's module loading environment, making it suitable for scenarios requiring dynamic module-like code execution within a controlled environment.","language":"javascript","status":"abandoned","version":"0.1.8","tags":["javascript","require","eval","vm","module","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install eval","imports":["const _eval = require('eval')"]},{"cmd":"yarn add eval","imports":[]},{"cmd":"pnpm add eval","imports":[]}],"homepage":null,"github":"https://github.com/pierrec/node-eval","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eval","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eval/compatibility"}}