I have a function:
fs.readFile = function(filename, callback) { // implementation code. };
Sometime later I want to see the signature of th
In node.js specifically, you have to convert the function to string before logging:
$ node > foo = function(bar, baz) { /* codez */ } [Function] > console.log(foo) [Function] undefined > console.log(foo.toString()) function (bar, baz) { /* codez */ } undefined >
or use a shortcut like foo+""
foo+""