I just found out that when you call toString() on a javascript function, as in myFunction.toString(), the source code of that function is returned.
myFunction.toString()
If y
My use case - I have a node program that processes data and produces interactive reports as html/js/css files. To generate a js function, my node code calls myfunc.toString() and writes it to a file.