CoffeeScript logo

CoffeeScript

A little language that compiles into JavaScript

What is CoffeeScript?

It adds syntactic sugar inspired by Ruby, Python and Haskell in an effort to enhance JavaScript's brevity and readability. Specific additional features include list comprehension and de-structuring assignment.
CoffeeScript is a tool in the Languages category of a tech stack.
CoffeeScript is an open source tool with 16.4K GitHub stars and 2K GitHub forks. Here’s a link to CoffeeScript's open source repository on GitHub

Who uses CoffeeScript?

Companies
891 companies reportedly use CoffeeScript in their tech stacks, including Glovo, Accenture, and Typeform.

Developers
1346 developers on StackShare have stated that they use CoffeeScript.

CoffeeScript Integrations

Hexo, XenForo, Prepros, Huginn, and HostGator are some of the popular tools that integrate with CoffeeScript. Here's a list of all 11 tools that integrate with CoffeeScript.
Pros of CoffeeScript
199
Easy to read
179
Faster to write
126
Syntactic sugar
104
Readable
104
Elegant
73
Pretty
53
Javascript the good parts
48
Open source
44
Classes
35
"it's just javascript"
16
Compact code
15
Easy
13
Simple
13
Not Javascript
2
Does the same with less code
1
I'm jobs I'm software engineer
Decisions about CoffeeScript

Here are some stack decisions, common use cases and reviews by companies and developers who chose CoffeeScript in their tech stack.

Needs advice
on
TypeScriptTypeScript
and
Flow (JS)Flow (JS)

From a StackShare community member: "We are looking to rewrite our outdated front-end with TypeScript. Right now we have a mix of CoffeeScript and vanilla JavaScript. I have read that adopting TypeScript can help enforce better code quality, and best practices. I also heard good things about Flow (JS). Which one would you recommend and why?"

See more

Blog Posts

CoffeeScript's Features

  • String Interpolation
  • Statement Modifiers
  • Callback Handling
  • Comprehensions
  • The Fat Arrow
  • Scoping
  • Clean JavaScript Output.

CoffeeScript Alternatives & Comparisons

What are some alternatives to CoffeeScript?
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
TypeScript
TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
ES6
Goals for ECMAScript 2015 include providing better support for large applications, library creation, and for use of ECMAScript as a compilation target for other languages. Some of its major enhancements include modules, class declarations, lexical block scoping, iterators and generators, promises for asynchronous programming, destructuring patterns, and proper tail calls.
Babel
Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support.
jQuery
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
See all alternatives

CoffeeScript's Followers
1180 developers follow CoffeeScript to keep up with related blogs and decisions.