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

tidyup

v0.0.7

Published

A simple CLI tool to organize files in a directory into categorized subfolders based on file types.

Downloads

13

Readme

Tidyup

tidyup is a powerful command-line tool that organizes files in a specified directory into categorized subfolders. It offers multiple options to customize the organization process, ensuring your directories remain clean and structured.


Features

  • Organizes files into subfolders by:
    • File Extensions (e.g., mp4, pdf).
    • Starting Names (e.g., project-a, report).
    • Creation Dates (e.g., 2024-12-24).
  • Handles file naming conflicts automatically.
  • Provides a detailed summary of the organization process.
  • Compatible with Windows, macOS, and Linux.

Installation

First, ensure you have Node.js installed on your system.

  1. Install tidyup globally via npm:

    npm install -g tidyup
  2. Verify the installation:

    tidyup --version

Usage

Run the tidyup command, specifying the directory to organize and the desired options.

tidyup [directory] [options]

If no directory is specified, the current directory (.) is used by default.

Options

  • --ext: Organize files into folders based on their file extensions.
  • --name: Group files by their starting names.
  • --date: Group files by their creation dates.

Note: These options cannot be used together. For example, you cannot use --ext and --name simultaneously.


Examples

Organize by File Extensions

tidyup /path/to/directory --ext

Example output:

Organization Summary for '/path/to/directory':
- Folder: mp4
  - Created
  - Files added: 3
- Folder: pdf
  - Already existed
  - Files added: 1

Group Files by Starting Names

tidyup /path/to/directory --name

Example output:

Organization Summary for '/path/to/directory':
- Folder: project-a
  - Created
  - Files added: 4
- Folder: report
  - Already existed
  - Files added: 2

Organize by Creation Dates

tidyup /path/to/directory --date

Example output:

Organization Summary for '/path/to/directory':
- Folder: 2024-12-23
  - Created
  - Files added: 2
- Folder: 2024-12-24
  - Already existed
  - Files added: 3

Invalid Option Combination

tidyup /path/to/directory --ext --name

Error output:

The --ext, --name, and --date options cannot be used together.

Development

  1. Clone the repository:

    git clone https://github.com/code-env/tidyup.git
  2. Navigate to the project directory:

    cd tidyup
  3. Install dependencies:

    npm install
  4. Build the project:

    npm run build
  5. Test locally:

    node ./dist/index.js <directory> [options]

Contributing

We welcome contributions! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request with your changes.

License

This project is licensed under the ISC License. See the LICENSE file for more details.


Author

tidyup is developed and maintained by Bossadi Zenith.


Happy organizing! 🎉

Let me know if this aligns with your requirements or needs further customization.