Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Unfunctional CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


An extremely lightweight language that compiles to JavaScript.

If CoffeeScript is JavaScript without the bad parts, DecafScript is CoffeeScript without all of the parts.

The only feature that seperates DecafScript from straight JavaScript is syntactic sugar for function declarations:

(arg1, arg2, arg3) -> { return arg1 + arg2 + arg2; }
// Compiles to:
function (arg1, arg2, arg3) { return arg1 + arg2 + arg2; }

As a result of it's extreme simplicity, the DecafScript compiler is only 126 bytes, compiled, minified and gzipped.

Known Issues

The compiler is extremely stupid, so any code that looks like (...) -> is replaced, even if it's part of a comment, string literal or regex.

Is this a joke?


Something went wrong with that request. Please try again.