TIL that hash-bang or shebang or
#! that I regularly saw the begging of every bash script is more than just some system notation.
So create file
hello.js with the following content:
#!/usr/bin/env node console.log("Hello world!");
Then make it executable:
chmod +x hello.js
$ ./hello.js Hello world!
Yeah, I just discovered something already well-known and it feels stupid and awesome.