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 🙏

© 2026 – Pkg Stats / Ryan Hefner

auto-organize

v1.5.0

Published

CLI tool to organize files in a directory based on their file types.

Readme

Auto Organize CLI Banner

NPM Version NPM Downloads NPM Last Update

Auto Organize CLI

Read this in: English | Spanish

A command-line tool (CLI) to automatically organize files in any directory on your system.

What problem does it solve?

When working with folders that accumulate files (Downloads, Desktop, projects, etc.), things usually get messy:

  • Files mixed by type.
  • Time wasted manually sorting files.
  • Risk of moving or deleting the wrong files.

Auto Organize CLI automates and fixes this process.

Key Features

  • Automatic file organization by type (based on file extensions).
  • Simulation mode (--preview) to preview changes.
  • Type filters (--only, --exclude).
  • Only moves files — never deletes them.
  • Tested on Windows and Linux (macOS compatibility is expected due to Node.js cross-platform support).

Installation

Requires Node.js >= 16

Download Node here

Option 1: Without installation (For one-time use)

npx auto-organize

Option 2: Global Installation (For regular use)

npm install -g auto-organize

Basic Usage

Navigate to any directory on your system. For example:

cd /Users/Downloads

Then run:

auto-organize || npx auto-organize

Depending on the files present, it will create folders such as:

Images/
Documents/
Audios/
Videos/
Archives/

And move files into their corresponding folders.

photo.jpg -> Images/

document.pdf -> Documents/

song.mp3 -> Audios/

video.mp4 -> Videos/

archive.rar -> Archives/

Example

auto-organize example

Simulation Mode (preview)

Preview the organization before applying real changes:

auto-organize --preview || auto-organize -p

Example output:

Images/
    photo.jpg

Documents/
    contract.pdf 

Audios/    
    song.mp3

Example

auto-organize preview example

Available Flags

--only <type>

Organize only the specified file types (if there is more than one type, separate the types with a comma).

auto-organize --only images
auto-organize --only images,videos

--exclude <type>

Excludes the specified file types (if there is more than one type, separate the types with a comma)

auto-organize --exclude archives
auto-organize --exclude archives,documents

--help

Display the help guide and available types.

auto-organize --help || auto-organize -h

Supported Types

  • images
  • documents
  • spreadsheets
  • presentations
  • archives
  • audios
  • videos
  • codes

Common Use Cases

  • Organizing the Downloads folder
  • Quick Desktop cleanup
  • Automatically classifying project files (e.g. a /public directory)

Contributing

Contributions are welcome:

  1. Fork the project.
  2. Create a feature branch: git checkout -b feature/{your-feature}
  3. Commit your changes: git commit -m 'Add your feature'
  4. Push the branch: git push origin feature/{your-feature}
  5. Open a pull request.

License

  • MIT

Author