Output a graph of all the files that are required by a JS source file, using the same dependency resolution as browserify. This will recursively search for required files.
npm install -g browserify-graph
browserify-graph <file>
Outputs a graph of all required files, starting at <file>
.
Optionally, you can specify: --depth/-d #only go depth levels deep in the graph --noExternal don't walk external dependencies (anything with node_modules in the path)
browserify-graph --depth <depth> --noExternal <file>