Why doesn't the Node console display the function code?

In the Google Chrome console, if I type fn where fn is a function, then I get the code for fn. In the Node console, typing require.resolve simply prints out

[Function]

Why don't I get the function definition?


From the comments: use fn.toString().