@fusionfroze/stratify
v1.0.1
Published
organize a messy directory based on time period
Maintainers
Readme
STRATIFY
Organize a messy, unorganized directory by time period.
Installation
Prerequisite: Node.js v18+
$ npm i -g @fusionfroze/stratifyHow to Use it
First, traverse to the directory you want to organize in your terminal.
Simulating the final structure
$ stratify --dry monthYou also have quarter and year as options.
This command will show you which file goes where, printing the final structure without actually moving files.
It's always recommended to simulate the command before running it.
Organizing a directory
Important: These commands move actual files, so you should simulate the effect of the commands first.
Command structure -
$ stratify monthOr, whatever time period you want to organize the directory with.
This will organize the whole directory by the time period you ran the command with.
Restoring the initial structure
After organizing a directory with the previous command, you can revert the file structure to its initial state by running this command -
$ stratify undoClearing history
You can also delete the history of an organized directory by running this command -
$ stratify clearImportant: If you delete the history of an organized directory, the undo command will not work in this directory.
(You will be asked for confirmation once, before actually deleting the history)
