GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 7A7z/node-rmrf

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
bun.lock
bun.lock
 
 
index.ts
index.ts
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

node-rmrf

A simple Bun CLI tool that helps you clean up old node_modules folders from multiple projects at once.

What it does

Run node-rmrf or nmrmrf in the main folder where you keep all your project folders. It will:

  • Scan up to 10 directory levels deep to find all node_modules folders
  • Present them in an interactive list for you to select
  • Delete only the ones you choose

Perfect for reclaiming disk space from old projects or dependencies you no longer need.

Installation

bun install -g @7a7z_/node-rmrf

Usage

# Run in current directory
node-rmrf
nmrmrf
# Run in a specific directory
node-rmrf ./my-projects
nmrmrf ./my-projects

Example

$ node-rmrf
Scanning: C:\Users\User\projects
Found 5 node_modules folders:

[ ] ./project-a/node_modules        (245 MB)
[x] ./project-b/node_modules        (1.2 GB)
[x] ./old-project/node_modules      (890 MB)
[ ] ./current-project/node_modules  (156 MB)
[x] ./test/node_modules             (45 MB)

Delete 3 selected folders? (yes/no): yes

Deleting...
✓ Deleted: ./project-b/node_modules (1.2 GB freed)
✓ Deleted: ./old-project/node_modules (890 MB freed)
✓ Deleted: ./test/node_modules (45 MB freed)

Total freed: 2.14 GB

Requirements

  • Bun runtime

License

MIT

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

5 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.