Honestly I didn’t consider that developers may be more comfortable with JavaScript than Bash!
Delaney, Alan

Exactly! Sadly, in my programming community, a vast majority have very poor knowledge of Bash and the command line in general. I guess Windows and Mac OS have made us a bit lazy. Task automation with JavaScript actually makes it cross platform. That’s my best bet why it has become so popular.