CoffeeScript is a little language that
compiles into JavaScript.
CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
The golden rule of CoffeeScript is: "It's just JavaScript". The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable and pretty-printed, will work in every JavaScript runtime, and tends to run as fast or faster than the equivalent handwritten JavaScript.
CoffeeScript is a lucid evolution of JavaScript created by Jeremy Ashkenas. CoffeeScript is available in browsers and environments where JavaScript
CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
The golden rule of CoffeeScript is: "It's just JavaScript". The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable and pretty-printed, will work in every JavaScript runtime, and tends to run as fast or faster than the equivalent handwritten JavaScript.
CoffeeScript is a lucid evolution of JavaScript created by Jeremy Ashkenas. CoffeeScript is available in browsers and environments where JavaScript
is
available
Installation
The
CoffeeScript compiler is itself written in CoffeeScript, using the Jison parser generator.
The command-line version of coffee
is available as a Node.js
utility. The core compiler however, does not depend on Node,
and can be run in any JavaScript environment, or in the browser.
Usage
Once
installed, you should have access to the coffee command, which can execute
scripts, compile .coffee files into .js, and provide an
interactive REPL. The coffee
command takes the following options:
| |||||||||||||||||||||||||||||
No comments:
Post a Comment