
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
declutter-cli
Advanced tools
A CLI tool to organize and declutter folders by grouping files into categorized subdirectories
A powerful command-line tool to organize and declutter your folders by automatically categorizing files into organized subdirectories based on their file types.
npm install -g declutter-cli
npm install declutter-cli
Simply run the command without arguments for an interactive experience:
declutter
declutter organize
# or
declutter o
declutter organize /path/to/folder
declutter o ~/Downloads
declutter preview
declutter preview /path/to/folder
declutter categories
# or
declutter c
-f, --force: Skip confirmation prompt-q, --quiet: Run in quiet mode with minimal output--overwrite: Overwrite existing files in destination folders# Organize without confirmation
declutter organize --force
# Organize quietly
declutter organize --quiet
# Organize with overwrite
declutter organize --overwrite
# Combine options
declutter organize ~/Downloads --force --quiet
The tool automatically organizes files into the following categories:
| Category | File Types | Folder Name |
|---|---|---|
| Images | .jpg, .jpeg, .png, .gif, .bmp, .svg, .webp, .ico, .tiff, .raw | Images |
| Documents | .pdf, .doc, .docx, .txt, .rtf, .odt, .pages | Documents |
| Spreadsheets | .xls, .xlsx, .csv, .ods, .numbers | Spreadsheets |
| Presentations | .ppt, .pptx, .odp, .key | Presentations |
| Videos | .mp4, .avi, .mkv, .mov, .wmv, .flv, .webm, .m4v | Videos |
| Audio | .mp3, .wav, .flac, .aac, .ogg, .wma, .m4a | Audio |
| Archives | .zip, .rar, .7z, .tar, .gz, .bz2, .xz | Archives |
| Code | .js, .ts, .py, .java, .cpp, .c, .html, .css, .php, .rb, .go, .rs | Code |
| Applications | .exe, .msi, .dmg, .pkg, .deb, .rpm, .appimage | Applications |
| Fonts | .ttf, .otf, .woff, .woff2, .eot | Fonts |
| Others | All other file types | Others |
Downloads/
├── photo.jpg
├── document.pdf
├── song.mp3
├── video.mp4
├── archive.zip
├── script.js
└── app.exe
Downloads/
├── Images/
│ └── photo.jpg
├── Documents/
│ └── document.pdf
├── Audio/
│ └── song.mp3
├── Videos/
│ └── video.mp4
├── Archives/
│ └── archive.zip
├── Code/
│ └── script.js
└── Applications/
└── app.exe
You can also use declutter-cli programmatically in your Node.js projects:
const { execSync } = require('child_process');
// Organize a folder
execSync('declutter organize /path/to/folder --force', { stdio: 'inherit' });
We welcome contributions! Please feel free to submit a Pull Request.
git clone https://github.com/nil-official/Declutter-CLI.git
cd Declutter-CLI
npm install
npm link
declutter --help
MIT License - see the LICENSE file for details.
If you encounter any issues or have suggestions, please open an issue on GitHub.
Made with ❤️ for developers who love organized folders!
FAQs
A CLI tool to organize and declutter folders by grouping files into categorized subdirectories
We found that declutter-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.