Randomly deletes 50% of the files in a directory, inspired by Thanos' infamous snap.
Install globally to use it as a command-line utility:
npm install -g @thanosjs/thanos.js
Run in the current directory:
npx @thanosjs/thanos.js
Or specify a target directory:
npx @thanosjs/thanos.js /path/to/project
This package is highly destructive. Use it only in controlled environments or with proper backups in place.
- 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 are welcome! Feel free to fork the repository, create issues, or submit pull requests.
MIT License. See the full text here.