CoffeeScript

CoffeeScript是一种编译成JavaScript的小语言。(CoffeeScript is a little language that compiles into JavaScript. )

Github星跟蹤圖

CoffeeScript是一种编译成JavaScript的小语言。在这个尴尬的Java风格的光泽下面,JavaScript一直有一个华丽的心。 CoffeeScript是一种尝试以简单的方式公开JavaScript的好处。

CoffeeScript的黄金法则是:“只是JavaScript”。 代码将一对一编译成等效的JS,并且在运行时没有解释。 您可以使用CoffeeScript中任何现有的JavaScript库(反之亦然)。 编译的输出是可读的,漂亮的打印,并且倾向于比等效的手写JavaScript快或快。
CoffeeScript编译器非常愿意在每个JavaScript运行时生成输出JavaScript,但也有例外。 只有当您知道目标运行时可以支持它们时,才能使用生成器函数,用于...或者标记的模板文字。 如果您使用模块,则需要使用其他工具来解决这些问题。

概覽

名稱與所有者jashkenas/coffeescript
主編程語言CoffeeScript
編程語言CoffeeScript (語言數: 2)
平台Linux, Mac, Windows
許可證MIT License
發布數101
最新版本名稱2.7.0 (發布於 )
第一版名稱0.1.0 (發布於 )
創建於2009-12-18 01:39:53
推送於2024-03-22 14:04:00
最后一次提交
星數16.4k
關注者數511
派生數2k
提交數4.9k
已啟用問題?
問題數4150
打開的問題數68
拉請求數882
打開的拉請求數14
關閉的拉請求數347
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
      @@@@@@@                @@@@  @@@@@
     @@@@@@@@@@              @@@   @@@                                           {
    @@@@     @@              @@@   @@@                                        }   }   {
   @@@@          @@@@@@@    @@@   @@@     @@@@@@    @@@@@@                   {   {  }  }
  @@@@          @@@   @@  @@@@@  @@@@@@  @@@   @@  @@@@  @@                   }   }{  {
  @@@@         @@@@   @@   @@@    @@@   @@@   @@@ @@@   @@@                  {  }{  }  }
  @@@@        @@@@    @@   @@@    @@@   @@@@@@@@  @@@@@@@@                  { }{ }{  { }
  @@@@@       @@@@   @@    @@@    @@@   @@@       @@@                     {  { } { } { }  }
   @@@@@@@@@@ @@@@@@@@    @@@    @@@    @@@@@@@@  @@@@@@@@                 { }   { }   { }
      @@@@@               @@@    @@@      @@@@@     @@@@@           @@@@@@   { }   { }    @@@@@@@
                         @@@    @@@                                 @@@@@@@@@@@@@@@@@@@@@@@@@@@@
      @@@@@@            @@@    @@@                                @@ @@@@@@@@@@@@@@@@@@@@@@@@@@
   @@@@    @@          @@@   @@@@                                @@   @@@@@@@@@@@@@@@@@@@@@@@@
   @@@@   @@@                       @@                  @@@@     @@@   @@@@@@@@@@@@@@@@@@@@@
   @@@@@          @@@@@   @@  @@   @@@     @@@@@@@     @@@@@      @@@    @@@@@@@@@@@@@@@@@@
     @@@@@      @@@  @@@ @@@@@@@@         @@@@  @@@@  @@@@@@@       @@@   @@@@@@@@@@@@@@@@
       @@@@@   @@@       @@@@     @@@@    @@@    @@@   @@@                 @@@@@@@@@@@@@@
 @@@@@  @@@@  @@@@      @@@@      @@@@   @@@@   @@@@  @@@@
@@@     @@@@  @@@       @@@@     @@@@    @@@    @@@@  @@@@
@@@     @@@@  @@@@     @@@@      @@@@   @@@@   @@@@  @@@@
 @@@@@@@@@     @@@@@@  @@@@       @@@@  @@@@@@@@@    @@@@
                                       @@@          @@@@
                                      @@@
                                      @@@

CoffeeScript is a little language that compiles into JavaScript.

Installation

Once you have Node.js installed:

# 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:

coffee /path/to/script.coffee

Compile a script:

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

去到頂部