Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript code analysis: Count function, variable calls and usage in a javascript file

Are there any tools that can count the number times a function or variable is called or passed in a javascript file?

I am looking to refactor code. Having this information would help me to break out the code.

Working this out can obviously done manually by searching, but I would preferably like to be able generate an accurate report automatically as I am working with large files.

like image 959
Jon Duffy Avatar asked May 20 '26 02:05

Jon Duffy


1 Answers

brackets with theseus might be what you need.

It can count how many times a function is called in your code while debugging.

like image 131
laggingreflex Avatar answered May 22 '26 17:05

laggingreflex