Bash中的JavaScript解释器 [英] JavaScript interpretor in Bash

查看:74
本文介绍了Bash中的JavaScript解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bash中是否有可用的JavaScript解释器(或其他任何shell),就像Perl和Python一样。我已经编写了一些JavaScript代码作为Web编程的一部分,并且想知道它是否也用作shell脚本语言?

Is there a JavaScript interpretor available in Bash (or for that matter any other shell) just like there is for Perl and Python. I have written some JavaScript code as part of web programming and was wondering if its used as a shell scripting language as well?

注意:如果感觉主观,请随时编辑此问题。

更新:当问到这个问题时,node.js并不受欢迎,但后来变得众所周知。

Update: node.js was not popular when this question was asked, but subsequently has become quite well known.

推荐答案

2010年问到这个问题时,node.js并不受欢迎,或者只是刚刚开始。随后它作为服务器端编程语言变得非常流行,具有相当好的库支持。

When this question was asked in 2010, node.js was not popular or just at its beginnings. Subsequently it has become quite popular as a server side programming language with fairly good library support.

对于任何想要在Bash中编写JavaScript代码的人来说,node.js是最佳选择。

For anyone looking to write JavaScript code in Bash, node.js is the way to go.

http://nodejs.org/

这篇关于Bash中的JavaScript解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆