The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
NPM audit for multiple subfolders
Is it possible to run npm-audit from the root of a project and expand the audit to other subfolders (submodules) that have their dependencies?
When I have a big project with submodules with their dependencies I have to run multiple times npm audit, with the result that I have many reports (I use
npm-audit-html for create an html report).
I’d like to tell npm audit a way (ex. npm audit --merge ./projectRoot/*/package.json - where * is a wildcard for every subfolder to check) to watch for every submodules and merge the reports into one.