RequireJS 提取所有模块列表

RequireJS extract list of all modules

如何使用 RequireJS 从项目中提取所有模块的列表?我有兴趣获取项目的结构,查看模块及其依赖项。

我找到了一个名为 Madge that can do exactly that. You can extract your RequireJS module dependencies and graph them using Graphviz 的 NPM 包。