O'Reilly logo

CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The coffee command

This command-line utility is like a Swiss army knife of CoffeeScript. You can use it to run CoffeeScript in an interactive fashion, compile CoffeeScript files into JavaScript files, execute .coffee files, watch files or directories, and compile if any of the files change, as well as a few other useful things. Executing the command is easy, just enter coffee along with some options and arguments for them.

For help on all the available options, run coffee with the -h or --help options. A list of useful options are shown in the following screenshot:

The coffee command

We have already seen the -v option, which will print out the current version of CoffeeScript. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required