@thanosjs/thanos.js
v0.0.4
Published
Reduce the file size of your project down to 50%, by randomly deleting half of the files.
Downloads
122
Maintainers
Readme
Thanos.js 🧤
Randomly deletes 50% of the files in a directory, inspired by Thanos' infamous snap.
Installation
Install globally to use it as a command-line utility:
npm install -g @thanosjs/thanos.js
Usage
Run in the current directory:
npx @thanosjs/thanos.js
Or specify a target directory:
npx @thanosjs/thanos.js /path/to/project
⚠️ Warning
This package is highly destructive. Use it only in controlled environments or with proper backups in place.
Features
- Recursively scans and lists all files within the specified directory.
- Randomly selects 50% of the files for deletion.
- Provides clear logs for every deleted file.
- Built with simplicity and fun in mind.
Contributions
Contributions are welcome! Feel free to fork the repository, create issues, or submit pull requests.
License
MIT License. See the full text here.