Date: 2012feb23
Updated: 2020oct8
OS: Linux
Language: javaScript
Keywords: test, check, syntax
Q. Is there javaScript for command-line Linux?
A. Yes. To install on RedHat/Fedora/CentOS:
dnf install nodejs
To use, put some javaScript code in a file (eg myfile.js) and run:
node myfile.js
I find this very handy. You can check the syntax of code that you
might use on a website.
There used to be package called just "js" which was
Mozilla SpiderMonkey but its not an available package any more.
You can still build it from source.