Scroll to navigation

COFFEE(1) User Commands COFFEE(1)

NAME

coffee - interpreter and compiler for the CoffeeScript language

SYNOPSIS

coffee [options] path/to/script.coffee [args]

DESCRIPTION

If called without options, `coffee` will run your script.

generate an abstract syntax tree of nodes
compile without a top-level function wrapper
compile to JavaScript and save as .js files
pass a string from the command line as input
display this help message
run an interactive CoffeeScript REPL
concatenate the source CoffeeScript before compiling
treat stdio as literate style coffeescript
generate source map and save as .js.map files
generate source map and include it directly in output
print out the parse tree that the parser produces
pass options directly to the "node" binary
suppress the "Generated by" header
set the output path or path/filename for compiled JavaScript
print out the compiled JavaScript
require the given module before eval or REPL
listen for and compile scripts over stdio
pipe generated JavaScript through Babel
print out the tokens that the lexer/rewriter produce
display the version number
watch scripts for changes and rerun commands
June 2022 coffee 2.7.0