empty-folders
v1.0.3
Published
A tiny CLI tool to detect empty folders inside your project (defaults to src/). Perfect for Next.js / React / Node projects to keep your structure clean.
Maintainers
Readme
empty-folders-check
A simple CLI tool that scans your project's src folder and prints empty folders.
Features
- Scans
src/recursively for empty folders - Prints all empty folders found
- Works well before running tools like Knip, ESLint, CI pipelines
Installation
Globally:
npm install -g empty-foldersLocally:
npm install --save-dev empty-foldersUsage
Run:
empty-foldersOutput example if empty folders found:
📁 Empty folders found:
- /path/to/project/src/test
────────────────────────────────────Output if no empty folders found:
✔️ No empty folders found in src.
────────────────────────────────────Add to npm scripts
{
"scripts": {
"check:empty": "empty-folders"
}
}Then run:
npm run check:emptyLicense
MIT © 2025
