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:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Tidy up your project KonMari style!
marie-kondo will recursively delete random files from a directory. Consider this to be a minification tool.
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.
npm install -g marie-kondo
To do a dry run:
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\
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)!