Is there a helpful library that can give me the argument values passed into a certain function? I want to write an automated test to check that, for every rename(x, y) in my code, x does not exist in any of my .html files.
For context, my app is 100% client-side, but I build it with node. When my code runs in the browser, rename(x, y) modifies .html stored in variables. But I also want to modify .html files on my filesystem (fs). The fs files shouldn't contain the x value either, since they should be renamed to y.
At the moment I modify the fs files via replace all in my editor. But I would like to make this a more automated process because sometimes I forget to do this.