Dave's Brain

Browse - Programming Tips - Is there javaScript for command-line Linux?

Date: 2012feb23
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 js
To use, put some javaScript code in a file (eg myfile.js) and run:
js myfile.js
I find this very handy. You can check the syntax of code that you might use on a website. For more info: https://developer.mozilla.org/en/SpiderMonkey

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.