Write A Catalyst

Write A Catalyst and Build it into Existence.

Member-only story

7 Awesome JavaScript Automation Scripts that I use daily🚀

--

It’s my second brain now.

Brain. Not a member? Read from here

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.

Screenshot

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)…

--

--

Write A Catalyst
Write A Catalyst

Published in Write A Catalyst

Write A Catalyst and Build it into Existence.

Adarsh Gupta
Adarsh Gupta

Written by Adarsh Gupta

Software Engineer | JavaScript developer | Technical Writer . Work with me? adarshguptaworks@gmail.com Connect with me? twitter.com/adarsh____gupta/

Responses (8)