funcinfo
v0.0.12
Published
Get information about functions
Downloads
13
Readme
funcinfo
Get information about functions.
Installing
$ npm install funcinfo
Example
require("funcinfo")();
function myFunction(){
return "hello world";
}
myFunction.platforms = {
chrome : function () {
return "hello chrome";
}
}
module.exports()
console.log(myFunction.$funcinfo$("myRenamedFunction"));
Output
{ name: 'myFunction',
isNative: false,
source: 'function myFunction(){\n return "hello world";\n}',
_source: '\n return "hello world";\n',
renamed: 'function myRenamedFunction (){\n return "hello world";\n}',
signature: 'myFunction=function myFunction(){}' }