DEV Community

Rex
Rex

Posted on

JavaScript or typescript script for automation

Instead of writing shell scripts for automation, write them in Typescript or JavaScript and run them with node:

  1. Way easier to write and maintain and AI will happily do it for you with higher correctness than the shell scripts

  2. Its platform agnostic! Node runs the same way on windows/Linux/mac

  3. Javascript automation script can do anything you can think of.

Personally I hate writing shell scripts because of weird syntax, hard to reuse, zero testability, mostly I think I am not smart enough for it and I am more than ok with it. For me, simplicity wins.

Top comments (0)