Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coffeescript mode for node console?

I'm wondering if there's any easy way to have an interactive node.js console session do on-the-fly interpretation of commands using coffeescript's syntax.

like image 512
haxxerz Avatar asked Jul 27 '12 13:07

haxxerz


Video Answer


2 Answers

Assuming you have node.js installed and npm[1], install CoffeeScript with this command:

> npm install -g coffee-script

Then in your terminal, type:

> coffee

You will have a node.js-like console, but with CoffeeScript syntax.

[1] To install node.js, download a binary from here: http://nodejs.org/#download

like image 86
nsmeta Avatar answered Oct 18 '22 09:10

nsmeta


Just try to type

coffee

in the shell

For installation

  1. Install Node.js First (NPM included)

  2. sudo npm install -g coffee-script

like image 33
jwchang Avatar answered Oct 18 '22 07:10

jwchang