1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
Unfancy JavaScript
Find a file
James Ide 2087923163 Replace "instanceof Array" in transformer with "[object Array]" comparison
Testing with `'[object Array]' is Object::toString.call element` allows arrays from another JS context to be properly handled. The specific use case here is to support jest, which sets up JS contexts using Node/io.js's "vm" module. This approach works in ES3 environments in contrast with ES5's `Array.isArray`.
2015-05-20 21:06:36 -07:00
bin Moved src/*.coffee under src/coffee-script/ so that lib can be added to $NODE_PATH and only expose the top-level coffee-script namespace. Fixes #1246 2011-07-05 21:58:04 +10:00
documentation Improved try/catch/finally to explain the options better. 2015-05-01 22:38:25 +01:00
examples Export the CoffeeScript REPL. 2014-04-18 08:26:51 -05:00
extras build & docs for 1.9.2 2015-04-15 17:26:30 +02:00
lib/coffee-script Replace "instanceof Array" in transformer with "[object Array]" comparison 2015-05-20 21:06:36 -07:00
src Replace "instanceof Array" in transformer with "[object Array]" comparison 2015-05-20 21:06:36 -07:00
test Merge pull request #3967 from lydell/implicit-call-implicit-obj 2015-05-01 07:48:59 -07:00
.gitignore ignore litcoffee files 2012-09-25 17:50:04 -05:00
.npmignore fixes issue #1490 ... jsl.conf is incorrectly npmignored. 2011-07-06 22:15:35 -04:00
bower.json bumped version to 1.9.2 2015-04-15 17:25:49 +02:00
Cakefile Merge remote-tracking branch 'A/master' 2014-09-06 11:32:25 +02:00
CNAME trying with just the .org 2011-10-31 22:54:32 -04:00
CONTRIBUTING.md now that github supports renames, coffeescript, not coffee-script 2014-05-08 15:07:42 -04:00
index.html adding new packt book at their request 2015-04-15 12:03:22 -04:00
LICENSE Fixed copyright range to be updated to 2015 2015-02-08 11:28:51 -08:00
package.json bumped version to 1.9.2 2015-04-15 17:25:49 +02:00
README.md Add link of changelog 2015-02-21 13:59:35 -05:00
register.js fix auto and manual require.extensions registration; ref #3141 2013-12-08 14:19:10 -06:00
repl.js Export the CoffeeScript REPL. 2014-04-18 08:26:51 -05:00

        {
     }   }   {
    {   {  }  }
     }   }{  {
    {  }{  }  }                    _____       __  __
   { }{ }{  { }                   / ____|     / _|/ _|
 .- { { }  { }} -.               | |     ___ | |_| |_ ___  ___
(  { } { } { } }  )              | |    / _ \|  _|  _/ _ \/ _ \
|`-..________ ..-'|              | |___| (_) | | | ||  __/  __/
|                 |               \_____\___/|_| |_| \___|\___|
|                 ;--.
|                (__  \            _____           _       _
|                 | )  )          / ____|         (_)     | |
|                 |/  /          | (___   ___ _ __ _ _ __ | |_
|                 (  /            \___ \ / __| '__| | '_ \| __|
|                 |/              ____) | (__| |  | | |_) | |_
|                 |              |_____/ \___|_|  |_| .__/ \__|
 `-.._________..-'                                  | |
                                                    |_|

CoffeeScript is a little language that compiles into JavaScript.

Installation

If you have the node package manager, npm, installed:

npm install -g coffee-script

Leave off the -g if you don't wish to install globally. If you don't wish to use npm:

git clone https://github.com/jashkenas/coffeescript.git
sudo coffeescript/bin/cake install

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: http://coffeescript.org/

To suggest a feature or report a bug: http://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: http://coffeescript.org/#changelog

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