3 ms·
It is _a_ perfect choice. 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
by FinalBriefing 5y ago
It is _a_ perfect choice.
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.
- gbear0 5y agoin case anyone is looking to do this, it's as easy as doing the following #!/usr/bin/env node console.log("Hello World!");
- rickstanley 5y agoIn case anyone wondering how this is valid JS: - https://tc39.es/proposal-hashbang/out.html https://tc39.es/proposal-hashbang/out.html - https://github.com/tc39/proposal-hashbang https://github.com/tc39/proposal-hashbang - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#hashbang_comments https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...