Javascript outside the browser

2019-05-23 06:13发布

I'm looking at writing some code in Javascript to run as a command line program, unrelated to browsers or the Web; it would need access to files and directories as normal for a command line utility. What's the best Windows implementation of Javascript for this scenario, with regard to stability and performance?

2条回答
干净又极端
2楼-- · 2019-05-23 06:54

I would take a look at Nodejs

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-05-23 06:55

I use jsdb or in windows cscript. In some editors (Editplus in my case, i've also use Aptana) you can configure running js-files directly from within the editor.

Ofcourse in jsfiddle.net you could create javascript unrelated to the browser (apart from the output, which can be [console.]logged or written to some div. In some cases it can be a problem that the code is evalled though.

Further, this blog entry may give you extra information

查看更多
登录 后发表回答