coffeescript README

The project's README from github.com/jashkenas/coffeescript. As one markdown file: README.md.

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

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

coffeescript (jashkenas/coffeescript)

Searching Database…

这是什么?CoffeeScript 是一种小型编程语言,可以编译成 JavaScript:你用它更简洁的语法来写代码,得到的是普通、标准的 JavaScript。
那它到底是一门编程语言,还是一个需要安装的编译工具?两者都是。CoffeeScript 本身是一门语言,同时这个项目也把它做成编译器提供,你安装后可以在终端里运行,把 CoffeeScript 转换成 JavaScript。
怎么安装,怎么运行我的第一个脚本?先安装 Node.js,然后运行 'npm install -g coffeescript'。之后你可以用 'coffee' 命令直接运行脚本,也可以先把它编译成 JavaScript。
除了 Node.js,还需要装别的东西吗?不需要。只要 Node.js 6 或更新版本就行——这个包没有额外的运行时依赖,也不需要本地编译步骤。
浏览器能直接运行 CoffeeScript 吗?不能——浏览器不认识 CoffeeScript,所以代码总是先编译成 JavaScript,编译出来的结果在任何能运行 JavaScript 的地方都能跑。
这个编译器支持哪些操作系统?只要 Node.js 能运行的地方编译器就能运行——Windows、macOS 和 Linux 都可以,没有针对特定系统的要求。
'Unfancy JavaScript' 是什么意思?这是项目自己的标语:意思是 CoffeeScript 用更干净、更少杂音的语法来写同样的 JavaScript 程序,编译器再把这些语法转换成普通的 JavaScript。
CoffeeScript 有多成熟?它是 JS 生态里的经典项目:2009 年 12 月启动,是历史最悠久的 JavaScript 替代语言之一,在 GitHub 上有大约 16.6k 星标,而且仓库并没有归档。
What are similar projects?TypeScript, pkg, tsx, Tov, zig, CalcKernel, tsrx, typst
Creator
jashkenas
Size
29.9 MB
Stars
16.6K
Updated
CommitSep 19
Age
16y
Commits · 90 Days