allow function to specified as a value on the exports, not exports directly
Currently, for JS functions, you must assign the function to `exports` which is of course allowed in node, but is becoming less standard. Allowing a function specification e.g. `myfunction` that is a key inside an object assigned to exports would be helpful especially with some transpiled languages.
Closing due to the fact that this is complete and lack of customer response asking for something else.
Thanks for doing this! This was the only ask