Yes, CoffeeScript simply compiles into pure JS, making it completely compatible with node.js.
To run CoffeeScripts on node, you can either:
- Type
coffee -c example.coffee
to compile, followed by node example.js
to run the compiled JS.
- Simply type
coffee example.coffee
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…