Tamedevil: Safely Build and Evaluate JavaScript
JSON →Tamedevil is a JavaScript/TypeScript library designed to mitigate the inherent dangers and complexities associated with `eval` and `new Function` for dynamic code generation. It achieves this by leveraging tagged template literals, ensuring that all string segments interpolated into the generated code are either trusted author-written code or properly escaped data. This approach significantly reduces the risk of code injection vulnerabilities. The library also addresses garbage collection concerns by ensuring generated functions operate without capturing ephemeral closure data, requiring all parameters to be passed explicitly. Currently at version `0.1.0` and actively developed as part of the Graphile Crystal ecosystem, it aims to provide a safer, more performant method for building dynamic functions where traditional `eval` is typically avoided.
Traffic · last 30 days ↑0% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany · 🇫🇮 Finland