{"library":"tamedevil","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.1.0","tags":["javascript","eval","template","literal","tagged","new Function","function","js","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tamedevil","imports":["import { te } from 'tamedevil';","const { te } = require('tamedevil');","import { te } from 'tamedevil'; const myRef = te.ref(someVariable);"]},{"cmd":"yarn add tamedevil","imports":[]},{"cmd":"pnpm add tamedevil","imports":[]}],"homepage":null,"github":"https://github.com/graphile/crystal","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tamedevil","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/tamedevil/compatibility"}}