Tamedevil: Safely Build and Evaluate JavaScript

JSON →
library 0.1.0 ·javascript
verified May 27, 2026

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.

total hits 16
actors 6 distinct systems
last hit 4d ago MJ12bot
GPTBot
5
MetaBot
4
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany · 🇫🇮 Finland