Giter Site home page Giter Site logo

infinity-snap's Introduction

Infinity Snap

Delete half of your project files. Perfectly balanced, as all things should be.

npm npm Maintenance

Installation

NPM

npm i -g infinity-snap

Usage

Just run infinity-snap in your current directory, or specify a path:

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 to run the exact same thing in bash. It's not as pretty, though.

snap.sh has been taken from hotvulcan'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

infinity-snap's People

Contributors

vmarchesin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.