Yes, CoffeeScript simply compiles into pure JS, making it completely compatible with node.js.(是的,CoffeeScript只是编译成纯JS,使其与node.js完全兼容。)
To run CoffeeScripts on node, you can either:(要在节点上运行CoffeeScripts,您可以:)
Type coffee -c example.coffee
to compile, followed by node example.js
to run the compiled JS.(键入coffee -c example.coffee
进行编译,然后输入node example.js
来运行已编译的JS。)
Simply type coffee example.coffee
(只需键入coffee example.coffee
)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…