Javascript as command line callable scripting language

前端 未结 6 375
野趣味
野趣味 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:20

    With Phantom JS you can easily run a javascript from command line and it naively supports DOM, CSS Selector and JSON.

提交回复
热议问题