Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including marie-kondo with all npm packages installed. Try it out:

marie-kondo lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("marie-kondo/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

marie-kondo v0.0.3

Tidy up your project!

Marie-Kondo

Tidy up your project KonMari style!
marie-kondo will recursively delete random files from a directory. Consider this to be a minification tool.

Why?

I cloned a repo that had hundreds of files in its root directory, none of which sparked joy. I then realized what the developer world needs is our very own Marie Kondo.

Usage

npm install -g marie-kondo

To do a dry run:

marie-kondo c:\path\to\some\project\

To get to work, cleaning up 5% of the total number of files:

marie-kondo --fix c:\path\to\some\project\

To get to work, cleaning up 35% of the total number of files:

marie-kondo --fix --probability 0.35 c:\path\to\some\project\

Disclaimer

This project is going to screw up your project horrifically!

Before running this program, back up your project, check in your code to the remote, whatever you need to do. I make no guarantees regarding the behavior of this code. If run on the wrong directory, you could potentially destroy your OS. Please use with caution (or don't use at all)!

License?

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free