funcinfo

0.0.12 • Public • Published

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(){}' }

Readme

Keywords

none

Package Sidebar

Install

npm i funcinfo

Weekly Downloads

1

Version

0.0.12

License

none

Last publish

Collaborators

  • sophtwhere