I am working on a website and gradually it become big. I am searching a tool or a method to know file dependencies.
for e.g.
I am using images/js/css files all over in website and before making any change or delete a file I want to know how many files (html,aspx) using that image/js/css file
thanks in advance :)
You can build something like this pretty easily. You need to parse the given html into a tree and filter out the external dependencies. There is a module on npm for that called deps-html.
Assuming you have nodejs installed, you can install it with:
After that you can create a tree and count the dependencies:
Then you can run it
You can also get more specific and count the individual assets by accessing the assets
type
property: