Skip to content

Instantly share code, notes, and snippets.

@JasonC761
Forked from jramb/install-coffee-script.txt
Created April 26, 2024 03:59
Show Gist options
  • Save JasonC761/9b6b31e6c2774c22130352e609d7118a to your computer and use it in GitHub Desktop.
Save JasonC761/9b6b31e6c2774c22130352e609d7118a to your computer and use it in GitHub Desktop.
Installing Coffee-script on Ubuntu
# install (old) nodejs package and npm
$ sudo apt-get install nodejs npm
# install coffee-script (globally)
$ sudo npm install -g coffee-script

Test driving it

square = (x) -> x * x

console.log square 5
coffee -c test.coffee       # produces test.js
coffee -cw test.coffee      # same but watches the file
coffee test.coffee --nodejs # runs it automatically through nodejs
@JasonC761
Copy link
Author

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment