How to enable harmony in Coffeescript?


Here is how I run my js code:

node --harmony ./data/app.js

Now I want to move to the CoffeeScript. So I try to run it like that:

coffee ./data/

And it fails. How can I pass this --harmony option?

Problem courtesy of: ciembor


To pass args through, you can use the --nodejs argument:

coffee --nodejs --harmony ./data/ 
Solution courtesy of: loganfsmyth


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.