carta
coffee(1)

coffee1

Interpreter and compiler for the coffeescript language

Usage

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

Overview

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

--ast

generate an abstract syntax tree of nodes

-b, --bare

compile without a top-level function wrapper

-c, --compile

compile to JavaScript and save as .js files

-e, --eval

pass a string from the command line as input

-h, --help

display this help message

-i, --interactive

run an interactive CoffeeScript REPL

-j, --join

concatenate the source CoffeeScript before compiling

-l, --literate

treat stdio as literate style coffeescript

-m, --map

generate source map and save as .js.map files

-M, --inline-map

generate source map and include it directly in output

-n, --nodes

print out the parse tree that the parser produces

--nodejs

pass options directly to the "node" binary

--no-header

suppress the "Generated by" header

-o, --output

set the output path or path/filename for compiled JavaScript

-p, --print

print out the compiled JavaScript

-r, --require

require the given module before eval or REPL

-s, --stdio

listen for and compile scripts over stdio

-t, --transpile

pipe generated JavaScript through Babel

--tokens

print out the tokens that the lexer/rewriter produce

-v, --version

display the version number

-w, --watch

watch scripts for changes and rerun commands

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)

--ast since Debian 12 (Bookworm); --inline-map since Debian 10 (Buster); --literate since Debian 9 (Stretch); --map since Debian 9 (Stretch); --no-header since Debian 9 (Stretch); --transpile since Debian 12 (Bookworm); -M since Debian 10 (Buster); -m since Debian 9 (Stretch).

--lint until Debian 8 (Jessie).

From coffeescript 2.7.0+dfsg1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.