Finding a tool to detect unrequired modules in a nodejs project
I have a nodejs project which is an API. I have to disable some routes in some deployments. Now I want the files ‘required’ by those routes to be deleted from the project. Theoraticaly it can be done by finding the files that are not required anywhere. Maybe by starting from the app.js and create a tree using the required files and then remove the files that are not in the tree.
error while importing module from sub-directory
When i trying to import modules in subdirectories, i get error [ERR_INVALID_MODULE_SPECIFIER]