um… what?
um… what?
I know a bit of bash, but I'm always looking up how to do things I know are simple in JS. I would love to be able to write scripts in JS because I'm faster with it, and I find it easier to read.
#!/usr/bin/env node
console.log("Hello World!");- https://tc39.es/proposal-hashbang/out.html
- https://github.com/tc39/proposal-hashbang
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Not saying it doesn't happen, just that it hasn't been my experience.
I think these are some reasons why our mileages differ:
- I need my scripts to work in both Windows and Linux.
- I am not very experienced with bash or other shell.
- Most of my "automation work" only involves reading text from a file, transform it, and write to another file. (Generating SQL commands, doing stats about town names, etc.)
I came across Bash, Powershell, Ruby, Python, Go, Rust, Perl, but JS?