Javascript as command line callable scripting language

前端 未结 6 394
野趣味
野趣味 2021-01-14 17:42

I\'m looking for a way to write some simple scripts in javascript, like I would in ruby. For example, I might write a script like:

var str = \"Hello World\"         


        
6条回答
  •  臣服心动
    2021-01-14 18:21

    what about mozilla's spidermonkey ?

    apt-cache search javascript interpreter
    spidermonkey-bin - standalone JavaScript/ECMAScript (ECMA-262) interpreter
    libjenkins-htmlunit-core-js-java - Jenkins branch of the HtmlUnit Core JS Interpreter
    gnome-js-common - Common modules for GNOME JavaScript interpreters
    

提交回复
热议问题