swp) finds old projects that haven't been changed in more
than a month. It will clean up and remove unnecessary directories
containing libraries, dependencies, builds, etc. These files can easily
be re-generated at any time by running install or build commands, and
if you haven't worked on the project in a while you probably don't need
them taking up space right now.
This project used to be named Project Cleanup, but got renamed because
swp is a much easier command to run than
# Getting started
swp with npm
npm install --global swp
See installation for alternative ways to install.
# Basic usage
swp and it will start searching the current directory and all subdirectories (recursively) for code projects it recognises.
You can also pass a path to search
See usage for more options
# Discovering projects
At this time, the list of built-in discovery rules is relatively short. It will recognise basic Node.js, Rust and Java projects, but nothing beyond that. If you have more sofisticated needs, you can use a .swpfile.
# Built-in rules
- Node.js (will remove the
- Rust (will remove the
- Java (will remove the
These languages are based on my own experience and use patterns.
# Adding more rules
Sweep is published under the MIT license. See the license file for details.