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

@aayank13/dir_manager

v0.1.4

Published

[![npm](https://img.shields.io/npm/v/@aayank13/dir_manager)](https://www.npmjs.com/package/@aayank13/dir_manager) [![license](https://img.shields.io/npm/l/@aayank13/dir_manager)](https://github.com/aayank13/dir_manager/blob/main/LICENSE)

Downloads

20

Readme

Directory Manager CLI

npm license

A CLI tool for managing directories and files efficiently. It allows you to:

  • List directory contents with detailed filtering options.
  • Create directories and files.
  • Filter and search files by type, size, date, and regex.

Features

  • List directory contents: View files and directories with detailed information, including size, creation date, and modification date.
  • Create directories: Create new directories within the specified path.
  • Create files: Quickly create empty files.
  • Advanced Search and Filtering:
    • Filter by file type (e.g., .txt, .js).
    • Filter by file size (e.g., minimum or maximum size).
    • Filter by creation or modification date.
    • Use regular expressions to search for filenames.

Installation

Install the CLI globally using npm:

npm install -g @aayank13/dir_manager

Usage

Once installed, you can use the dirmanager command to manage directories and files.

Commands

List Directory Contents with Filtering

dirmanager --ls [path] [options]
  • path (optional): The directory to list. If omitted, it lists the current directory.
  • Options:
    • --type <file-type>: Filter by file type (e.g., .txt, .js).
    • --min-size <size>: Minimum file size in bytes.
    • --max-size <size>: Maximum file size in bytes.
    • --start-date <date>: Filter files created or modified after a specific date (e.g., 2024-01-01).
    • --end-date <date>: Filter files created or modified before a specific date.
    • --regex <pattern>: Regex pattern for filenames.

Example:

dirmanager --ls ./my-folder --type .txt --min-size 1024 --start-date 2024-01-01

Create a Directory

dirmanager --mkdir <directory-name>
  • directory-name: The name of the directory to create.

Example:

dirmanager --mkdir new-folder

Create a File

dirmanager --touch <file-name>
  • file-name: The name of the file to create.

Example:

dirmanager --touch new-file.txt

Display Help

To display all available options:

dirmanager --help

Examples

  1. List the contents of the current directory with filtering:

    dirmanager --ls --type .txt --min-size 1024 --start-date 2024-01-01
    • Displays all .txt files larger than 1KB modified after January 1st, 2024.
  2. Create a new directory named my-dir:

    dirmanager --mkdir my-dir
  3. Create a new file named example.txt:

    dirmanager --touch example.txt

Requirements

  • Node.js v14 or higher.

Contributing

Feel free to fork the repository and submit a pull request with your improvements.

License

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

Author

Aayan
GitHub: @aayank13
NPM: @aayank13

Let me know if you'd like any further changes!