Sample file download

Sample CoffeScript file (.coffee)

CoffeScript is a language that compiles to JavaScript.

Here is the file type:

$ file sample.coffee
sample.coffee: ASCII text

Here is how to run the file:

$ coffee sample.coffee
Sample Coffescript file

And how to compile it to JS:

$ coffee -c sample.coffee
$ cat sample.js 
// Generated by CoffeeScript 1.6.1
(function() {
  var sample;

  sample = function(text) {
    return console.log(text);
  };

  sample("Sample Coffescript file");

}).call(this);

Sample CoffeeScript file: download here.

More information on CoffeeScript

Tags:

Top Site Counter