generate-function / 2.0.0 last updated 2 years ago created on Jul 30th 2014
Install
npm install --save generate-function
Clone
git clone git@github.com:mafintosh/generate-function.git
dependencies
No dependencies listed.
maintainers
versions
7 total
| 2.0.0 | 2 years ago | mafintosh |
| 1.1.0 | 2 years ago | mafintosh |
| 1.0.3 | 2 years ago | mafintosh |
| 1.0.2 | 2 years ago | mafintosh |
| 1.0.1 | 2 years ago | mafintosh |
| 1.0.0 | 2 years ago | mafintosh |
| 0.0.0 | 2 years ago | mafintosh |
readme
generate-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