commands.sh

coffee

all

Execute CoffeeScript scripts or compiles them into JavaScript.

More info →

Examples (5)

Run a script

coffee path/to/file.coffee

Compile to JavaScript and save to a file with the same name

coffee --compile path/to/file.coffee

Compile to JavaScript and save to a given output file

coffee --compile path/to/file.coffee --output path/to/file.js

Start a REPL (interactive shell)

coffee --interactive

Watch script for changes and re-run script

coffee --watch path/to/file.coffee
made by @shridhargupta | data from tldr-pages