react / wstein / node_modules / jest-cli / node_modules / jsdom / node_modules / request / node_modules / har-validator / node_modules / is-my-json-valid / node_modules / generate-function / README.md
81159 viewsgenerate-function
Module that helps you write generated functions in Node
Disclamer
Writing code that generates code is hard. You should only use this if you really, really, really need this for performance reasons (like schema validators / parsers etc).
Usage
If you need to close over variables in your generated function pass them to toFunction(scope)
Related
See generate-object-property if you need to safely generate code that can be used to reference an object property
License
MIT