rg --files -g '!node_modules'

Category: Web App Development

rg --files -g '!node_modules'

List project files excluding node_modules

Prints every file tracked in the project, honoring .gitignore and skipping node_modules. The --files mode turns ripgrep into a fast file lister. Use it to feed other tools like xargs without the noise of dependencies.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.