npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

thanos-js

0.0.11 • Public • Published

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-glove

You 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.

install

npm i thanos-js

Downloadsweekly downloads

9

version

0.0.11

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability