https://github.com/anandundavia/thanos-js
A casual (but dangerous) package that will let Thanos snap fingers and delete random files inside a directory
https://github.com/anandundavia/thanos-js
avengers marvel nsfw thanos thanosjs
Last synced: 27 days ago
JSON representation
A casual (but dangerous) package that will let Thanos snap fingers and delete random files inside a directory
- Host: GitHub
- URL: https://github.com/anandundavia/thanos-js
- Owner: anandundavia
- License: mit
- Created: 2019-03-06T18:00:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T17:53:59.000Z (about 4 years ago)
- Last Synced: 2025-03-27T15:56:21.534Z (about 1 month ago)
- Topics: avengers, marvel, nsfw, thanos, thanosjs
- Language: JavaScript
- Homepage:
- Size: 931 KB
- Stars: 433
- Watchers: 8
- Forks: 15
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thanos-js
Thanos has now arrived on your PC and he will bring havoc to your files.
He will wipe out exactly half of your files when he snaps fingers wearing the infinity-gauntlet-gloveYou are lucky though, he can only carry out destruction in the directory in which the command is executed.
## Install
`npm install -g thanos-js`
## Usage
- Limited Power: `thanos-js snap-fingers`
- Full Power: `thanos-js snap-fingers --with-infinity-gauntlet-glove`## Technical Details
- Yes, It deletes the files. [ for those who are confused about what this package does ]
- It uses `fs.unlinkSync` to delete the files.
- It traverses the whole directory structure down from where the command is executed. So files inside child directories might be deleted.
- It does not traverse every directory. `node_modules`, `.git` and other directories starting with '`.`' are not traversed. [ Deleting random files from `.git` would be absolutely evil and Thanos would LOVE to do it 😈 ]
- Exactly half of the files are deleted. Each file is given a `chance` at random and either the top 50% of the files or bottom 50% of files are chosen to be deleted.## Other Similar Implementations
- JAVA - [thanos.jar](https://github.com/aeris170/thanos.jar)