a simple program to sorting all files on a folder.
the rules of sorting can you see at index.js:6
const rules = {
"./multimedia/images/@": "./*.{jpg,png,webp,gif,jpeg}",
"./multimedia/videos/@": "./*.{mp4,mov}",
"./multimedia/audios/@": "./*.{mp3,m4a}",
"./files/archives/@": "./*.{zip,rar,tr.gz,7z,tar,tar.gz}",
"./files/codes/@": "./*.{xml,html,css,js,jsx,tsx,ts,sql,md,json}",
"./files/documents/@": "./*.{pdf,xlxx,docx,docs}",
"./files/applications/windows/@": "./*.{exe,msi}",
"./files/applications/android/@": "./*.apk",
"./files/applications/linux/debian/@": "./*.deb",
"./files/applications/bootables/@": "./*.iso",
"./files/transfers/@": "./*.torrent",
"./others/@": "./*.{bak,txt}",
};
- first you need to create a symlink using npm (or any nodejs package manager)
npm link
- enter your destination you will sort
- run the sorten program
# use npm
npx sorten
# call the symlink directly
sorten
built with ❤️ by fiandev