Member-only story
7 Awesome JavaScript Automation Scripts that I use daily🚀
It’s my second brain now.
Time is one of my most important things, and this is a general statement for everyone.
I always try to create scripts to automate my boring tasks. If something is repetitive, I build scripts for it.
Since I started using these scripts, I’ve saved hundreds of hours, and instead of keeping this secret, I decided to share it with YOU so that you can save hours and thank me next time.
I assume you have node.js installed on your PC
1. Organizing My Folders
If your folders look like this, I know your pain.
This is a total mess, and I always hate seeing my folders like this. I need better organization.
Run this script, and your files will be as organized as they can be. If you have Node.js installed, just go to the directory where you want to run this and execute the command: node script.js
const fs = require('fs');
const path = require('path');
function organizeFiles(directory) {
fs.readdir(directory, (err, files) => {
if (err)…