@thanosjs/thanos.js

0.0.4 • Public • Published

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.

Package Sidebar

Install

npm i @thanosjs/thanos.js

Weekly Downloads

19

Version

0.0.4

License

MIT

Unpacked Size

3.57 kB

Total Files

4

Last publish

Collaborators

  • gusttavocastro