Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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/app.coffee

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

like image 906
ciembor Avatar asked Nov 25 '12 04:11

ciembor


1 Answers

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

coffee --nodejs --harmony ./data/app.coffee 
like image 71
loganfsmyth Avatar answered Sep 21 '22 08:09

loganfsmyth