npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

declutter-cli

v1.0.0

Published

A CLI tool to organize and declutter folders by grouping files into categorized subdirectories

Readme

Declutter CLI 🗂️

A powerful command-line tool to organize and declutter your folders by automatically categorizing files into organized subdirectories based on their file types.

Features

  • 🚀 Smart File Organization: Automatically categorizes files by type (images, documents, videos, etc.)
  • 📁 10+ File Categories: Supports images, documents, videos, audio, code, archives, and more
  • 🔍 Preview Mode: See how files will be organized before making changes
  • Fast & Efficient: Built with Node.js for optimal performance
  • 🎨 Beautiful CLI: Colorful and intuitive command-line interface
  • 🛡️ Safe: Confirmation prompts and error handling to protect your files
  • 🔧 Flexible: Multiple options and commands for different use cases

Installation

Global Installation (Recommended)

npm install -g declutter-cli

Local Installation

npm install declutter-cli

Usage

Interactive Mode

Simply run the command without arguments for an interactive experience:

declutter

Quick Commands

Organize Current Directory

declutter organize
# or
declutter o

Organize Specific Directory

declutter organize /path/to/folder
declutter o ~/Downloads

Preview Organization (No Changes Made)

declutter preview
declutter preview /path/to/folder

View Supported Categories

declutter categories
# or
declutter c

Command Options

  • -f, --force: Skip confirmation prompt
  • -q, --quiet: Run in quiet mode with minimal output
  • --overwrite: Overwrite existing files in destination folders

Examples with Options

# Organize without confirmation
declutter organize --force

# Organize quietly
declutter organize --quiet

# Organize with overwrite
declutter organize --overwrite

# Combine options
declutter organize ~/Downloads --force --quiet

File Categories

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 |

Examples

Before Organization

Downloads/
├── photo.jpg
├── document.pdf
├── song.mp3
├── video.mp4
├── archive.zip
├── script.js
└── app.exe

After Organization

Downloads/
├── Images/
│   └── photo.jpg
├── Documents/
│   └── document.pdf
├── Audio/
│   └── song.mp3
├── Videos/
│   └── video.mp4
├── Archives/
│   └── archive.zip
├── Code/
│   └── script.js
└── Applications/
    └── app.exe

API Usage

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' });

Requirements

  • Node.js 14.0.0 or higher
  • npm or yarn

Contributing

We welcome contributions! Please feel free to submit a Pull Request.

Development Setup

  1. Clone the repository
git clone https://github.com/nil-official/Declutter-CLI.git
cd Declutter-CLI
  1. Install dependencies
npm install
  1. Link for local development
npm link
  1. Test your changes
declutter --help

License

MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have suggestions, please open an issue on GitHub.

Changelog

v1.0.0

  • Initial release
  • Support for 10+ file categories
  • Interactive and command-line modes
  • Preview functionality
  • Safe file operations with confirmations

Made with ❤️ for developers who love organized folders!