I’m doing some tutorials and I’m writing everything in CoffeeScript. I then have to compile to JS then execute in node.js. Is there any way to do it directly?
I’m doing some tutorials and I’m writing everything in CoffeeScript. I then have to
Share
If you have npm, use it to install coffeescript from a node prompt: http://jashkenas.github.com/coffeescript/#installation
Then, from the node prompt, you can simply use the coffee command to execute:
And, to just compile, pass the
-cflag: