{"id":18406540,"url":"https://github.com/vmarchesin/infinity-snap","last_synced_at":"2025-04-07T08:32:26.006Z","repository":{"id":57273667,"uuid":"174178247","full_name":"vmarchesin/infinity-snap","owner":"vmarchesin","description":"Delete half of your project files. Perfectly balanced, as all things should be.","archived":false,"fork":false,"pushed_at":"2019-03-08T21:03:54.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T18:55:09.596Z","etag":null,"topics":["avengers","cli","javascript","npm","thanos"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmarchesin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-06T16:13:44.000Z","updated_at":"2023-04-28T23:57:10.000Z","dependencies_parsed_at":"2022-09-17T05:11:11.972Z","dependency_job_id":null,"html_url":"https://github.com/vmarchesin/infinity-snap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarchesin%2Finfinity-snap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarchesin%2Finfinity-snap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarchesin%2Finfinity-snap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmarchesin%2Finfinity-snap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmarchesin","download_url":"https://codeload.github.com/vmarchesin/infinity-snap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247620437,"owners_count":20968212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avengers","cli","javascript","npm","thanos"],"created_at":"2024-11-06T03:09:32.314Z","updated_at":"2025-04-07T08:32:25.687Z","avatar_url":"https://github.com/vmarchesin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infinity Snap\nDelete half of your project files. Perfectly balanced, as all things should be.\n\n[![npm](https://img.shields.io/npm/v/infinity-snap.svg)]()\n[![npm](https://img.shields.io/npm/dt/infinity-snap.svg)]()\n![Maintenance](https://img.shields.io/maintenance/yes/2019.svg)\n\n## Installation\n\n\n[![NPM](https://nodei.co/npm/infinity-snap.png)](https://www.npmjs.com/package/infinity-snap)\n\n```bash\nnpm i -g infinity-snap\n```\n\n## Usage\n\nJust run infinity-snap in your current directory, or specify a path:\n```bash\ninfinity-snap /\n```\n\n### Options:\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003cth\u003eoption\u003c/th\u003e\n    \u003cth\u003ealias\u003c/th\u003e\n    \u003cth\u003edescription\u003c/th\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--exclude \u003cu\u003eregex\u003c/u\u003e\u003c/td\u003e\n      \u003ctd\u003e-e\u003c/td\u003e\n      \u003ctd\u003ePrevent files that match the regex from being deleted.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--path \u003cu\u003estring\u003c/u\u003e\u003c/td\u003e\n      \u003ctd\u003e-p\u003c/td\u003e\n      \u003ctd\u003eThe path of the directory to run the snap. Everything inside will be selected at random to be deleted.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--preserve-git\u003c/td\u003e\n      \u003ctd\u003e-g\u003c/td\u003e\n      \u003ctd\u003eDoes 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.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--verbose\u003c/td\u003e\n      \u003ctd\u003e-v\u003c/td\u003e\n      \u003ctd\u003eEnable logging the deleted files.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--help\u003c/td\u003e\n      \u003ctd\u003e-h\u003c/td\u003e\n      \u003ctd\u003ePrints the usage guide.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--version\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003ePrints the current software version.\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n# FAQ\n\n### **Why would I need to use this?**\n\nYou 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\".\n\n### **Seriously, why did you create this?**\n\nBalance must be achieved by all means necessary. Imagine a world where half of the JavaScript frameworks don't exist? Wouldn't that be beautiful? \u003csmall\u003eMaybe that's what I should work next.\u003c/small\u003e\n\n### **Can I prank people with this?**\n\nSorry, 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.\n\n### **I deleted some *really* important files accidentally, how do I get them back?**\n\nYou can download `infinity-avengers` to retrieve your deleted files back. You only have one chance in 14,000,605 though.\n\n### **I don't want to use npm. How can I cleanse my computer?**\n\nYou 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.\n\n\u003csmall\u003e[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\u003c/small\u003e\n\n### **Does it work on Windows?**\n\nThis should work on unix systems. Maybe it works on Windows? I don't know. Try it on System32 and let me know.\n\n## License\n\n[MIT](https://github.com/vmarchesin/infinity-snap/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmarchesin%2Finfinity-snap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmarchesin%2Finfinity-snap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmarchesin%2Finfinity-snap/lists"}