Skip to content

lesimoes/clean-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

clean-node

A CLI tool to scan and list all node_modules directories starting from the current working directory. It shows the full path, last modification date, and total size of each directory β€” ideal for identifying and cleaning up unused dependencies.


πŸš€ Installation

Clone the repository and link it locally:

npm install
sudo npm link

This will make the clean-node command available globally in your terminal.

🧼 How to use

clean-node

πŸ“¦ Example output

πŸ“¦ [1] /Users/user/Projects/api/node_modules
   πŸ•’ Last modified: 04/04/2025 12:32:10

πŸ“¦ [2] /Users/user/Projects/site/node_modules
   πŸ•’ Last modified: 03/04/2025 09:10:47

πŸ”§ Requirements

Node.js 18 or newer

πŸ“Œ Notes

This tool does not delete any folders β€” it only scans and reports.

Made because I'm tired of forgotten node_modules eating up disk space.

  • Possible in future I'll add delete feature.

About

Searching for node_modules eating up your memories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •