1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 16:44:56 +02:00
tldr/pages/common/coffee.md
2018-07-31 20:34:53 +01:00

23 lines
504 B
Markdown

# coffee
> Executes CoffeeScript scripts or compiles them into JavaScript.
- 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}}`
- Run interactive REPL:
`coffee --interactive`
- Watch script for changes and re-run script:
`coffee --watch {{path/to/file.coffee}}`