jashkenas /coffeescript

Unfancy JavaScript

★ 16,594⑂ 1,973👁 481⑃ 1,261● 4,171▤ 1
CoffeeScriptMITCreated 2009-12-18coffeescript.org/
下载:2.7.12.7.1 ↓2.7.12026-10-25
+0
日增长
16,594
stars
1,973
forks
481
watchers
1,261
prs
4,171
issues
1
releases

README

@@@@@@@                @@@@  @@@@@
     @@@@@@@@@@              @@@   @@@                                           {
    @@@@     @@              @@@   @@@                                        }   }   {
   @@@@          @@@@@@@    @@@   @@@     @@@@@@    @@@@@@                   {   {  }  }
  @@@@          @@@   @@  @@@@@  @@@@@@  @@@   @@  @@@@  @@                   }   }{  {
  @@@@         @@@@   @@   @@@    @@@   @@@   @@@ @@@   @@@                  {  }{  }  }
  @@@@        @@@@    @@   @@@    @@@   @@@@@@@@  @@@@@@@@                  { }{ }{  { }
  @@@@@       @@@@   @@    @@@    @@@   @@@       @@@                     {  { } { } { }  }
   @@@@@@@@@@ @@@@@@@@    @@@    @@@    @@@@@@@@  @@@@@@@@                 { }   { }   { }
      @@@@@               @@@    @@@      @@@@@     @@@@@           @@@@@@   { }   { }    @@@@@@@
                         @@@    @@@                                 @@@@@@@@@@@@@@@@@@@@@@@@@@@@
      @@@@@@            @@@    @@@                                @@ @@@@@@@@@@@@@@@@@@@@@@@@@@
   @@@@    @@          @@@   @@@@                                @@   @@@@@@@@@@@@@@@@@@@@@@@@
   @@@@   @@@                       @@                  @@@@     @@@   @@@@@@@@@@@@@@@@@@@@@
   @@@@@          @@@@@   @@  @@   @@@     @@@@@@@     @@@@@      @@@    @@@@@@@@@@@@@@@@@@
     @@@@@      @@@  @@@ @@@@@@@@         @@@@  @@@@  @@@@@@@       @@@   @@@@@@@@@@@@@@@@
       @@@@@   @@@       @@@@     @@@@    @@@    @@@   @@@                 @@@@@@@@@@@@@@
 @@@@@  @@@@  @@@@      @@@@      @@@@   @@@@   @@@@  @@@@
@@@     @@@@  @@@       @@@@     @@@@    @@@    @@@@  @@@@
@@@     @@@@  @@@@     @@@@      @@@@   @@@@   @@@@  @@@@
 @@@@@@@@@     @@@@@@  @@@@       @@@@  @@@@@@@@@    @@@@
                                       @@@          @@@@
                                      @@@
                                      @@@


CoffeeScript is a little language that compiles into JavaScript.

 Installation

Once you have Node.js installed:

shell
 Install locally for a project:
npm install --save-dev coffeescript

 Install globally to execute .coffee files anywhere:
npm install --global coffeescript


 Getting Started

Execute a script:

shell
coffee /path/to/script.coffee


Compile a script:

shell
coffee -c /path/to/script.coffee


For documentation, usage, and examples, see: https://coffeescript.org/

To suggest a feature or report a bug: https://github.com/jashkenas/coffeescript/issues

If you’d like to chat, drop by coffeescript on Freenode IRC.

The source repository: https://github.com/jashkenas/coffeescript.git

Changelog: https://coffeescript.org/changelog

Our lovely and talented contributors are listed here: https://github.com/jashkenas/coffeescript/contributors

Top issues

Latest release

2.7.1 2.7.1 2026-10-25
Compatibility with Node 22 and later: stack trace patching and source maps now work correctly, and the new with { type: 'json' } import attributes syntax is supported alongside assert.
 Numeric literals now support a capital E in scientific notation, and method calls on numbers with underscores such as 1_000.toString() now compile correctly.
 Performance improvements to the flatten helper (no longer recursive), checkShebangLine and the number-matching regular expressions.
 Documentation fixes: code snippets now run correctly again, and a hover line-height shift was fixed.
 Continuous integ

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON