1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/coffee.md
Vítor Henrique 5edbf734fb
pages*: improve page descriptions (#12558)
* pages*: improve page descriptions

* ical: improve page description

* cockpit-desktop: remove unneeded word from page description

* nc: improve description wording

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-04-25 19:58:21 -03:00

24 lines
567 B
Markdown

# coffee
> Execute CoffeeScript scripts or compiles them into JavaScript.
> More information: <https://coffeescript.org#cli>.
- 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}}`