Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmarchesin/infinity-snap
Delete half of your project files. Perfectly balanced, as all things should be.
https://github.com/vmarchesin/infinity-snap
avengers cli javascript npm thanos
Last synced: 3 months ago
JSON representation
Delete half of your project files. Perfectly balanced, as all things should be.
- Host: GitHub
- URL: https://github.com/vmarchesin/infinity-snap
- Owner: vmarchesin
- License: mit
- Created: 2019-03-06T16:13:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-08T21:03:54.000Z (almost 6 years ago)
- Last Synced: 2024-08-08T23:14:50.628Z (6 months ago)
- Topics: avengers, cli, javascript, npm, thanos
- Language: JavaScript
- Size: 18.6 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Infinity Snap
Delete half of your project files. Perfectly balanced, as all things should be.[![npm](https://img.shields.io/npm/v/infinity-snap.svg)]()
[![npm](https://img.shields.io/npm/dt/infinity-snap.svg)]()
![Maintenance](https://img.shields.io/maintenance/yes/2019.svg)## Installation
[![NPM](https://nodei.co/npm/infinity-snap.png)](https://www.npmjs.com/package/infinity-snap)
```bash
npm i -g infinity-snap
```## Usage
Just run infinity-snap in your current directory, or specify a path:
```bash
infinity-snap /
```### Options:
option
alias
description
--exclude regex
-e
Prevent files that match the regex from being deleted.
--path string
-p
The path of the directory to run the snap. Everything inside will be selected at random to be deleted.
--preserve-git
-g
Does not delete any files inside '.git' folders. Use this if you don't wish to screw your git repo so you can push the balanced code.
--verbose
-v
Enable logging the deleted files.
--help
-h
Prints the usage guide.
--version
Prints the current software version.
# FAQ
### **Why would I need to use this?**
You believe not all code is created equal, but no code is better than the other. The codebase is too big, and it's hard to maintain your project. You need a solution, a quick and effective one. But most of all, you need an impartial solution, one that won't benefit your code over your colleague's. You need a "snap".
### **Seriously, why did you create this?**
Balance must be achieved by all means necessary. Imagine a world where half of the JavaScript frameworks don't exist? Wouldn't that be beautiful? Maybe that's what I should work next.
### **Can I prank people with this?**
Sorry, but this isn't a prank tool. Yes, you can use this on your friend's computer, but it won't be much of a prank. Instead you'll be cleansing your friend's computer, enabling new files to be born and take over those who are gone. You're doing your friend a favor.
### **I deleted some *really* important files accidentally, how do I get them back?**
You can download `infinity-avengers` to retrieve your deleted files back. You only have one chance in 14,000,605 though.
### **I don't want to use npm. How can I cleanse my computer?**
You can use [snap.sh](https://github.com/vmarchesin/infinity-snap/blob/master/snap.sh) to run the exact same thing in bash. It's not as pretty, though.
[snap.sh](https://github.com/vmarchesin/infinity-snap/blob/master/snap.sh) has been taken from [hotvulcan](https://github.com/hotvulcan/Thanos.sh)'s repo
### **Does it work on Windows?**
This should work on unix systems. Maybe it works on Windows? I don't know. Try it on System32 and let me know.
## License
[MIT](https://github.com/vmarchesin/infinity-snap/blob/master/LICENSE)