{"library":"simple-eval","type":"library","category":null,"description":"simple-eval is a focused JavaScript library designed for evaluating simple expressions safely, providing an alternative to the native `eval()` function with a controlled execution environment. The current stable version is 2.0.0. It aims for a moderate release cadence, primarily for maintenance, bug fixes, or minor feature additions. A key differentiator is its limited instruction set, which enhances security by disallowing declarations, assignments, and complex statements, making it safer than direct `eval` for untrusted input, though it does not provide a full sandbox. It uses `jsep` as the default AST parser but supports any ESTree compliant parser like `acorn`, `@babel/parser`, or `esprima`, offering flexibility in parsing logic. This makes it suitable for scenarios requiring lightweight, controlled expression evaluation.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","eval","evaluation","code evaluation","code execution","ast","typescript"],"install":[{"cmd":"npm install simple-eval","imports":["import simpleEval from 'simple-eval';","import type { SimpleEvalFunction } from 'simple-eval';","import type { CustomParserOptions } from 'simple-eval';"]},{"cmd":"yarn add simple-eval","imports":[]},{"cmd":"pnpm add simple-eval","imports":[]}],"homepage":null,"github":"https://github.com/P0lip/simple-eval","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/simple-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/simple-eval/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}