mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Prepare for new module name on NPM
This commit is contained in:
@@ -653,7 +653,7 @@ textarea {
|
||||
<p>The golden rule of CoffeeScript is: <em>“It’s just JavaScript.”</em> The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript.</p>
|
||||
<p><strong>Latest Version:</strong> <a href="http://github.com/jashkenas/coffeescript/tarball/2.0.0-alpha1">2.0.0-alpha1</a></p>
|
||||
<blockquote>
|
||||
<pre><code>npm install -g coffee-script</code></pre></blockquote>
|
||||
<pre><code>npm install -g coffeescript</code></pre></blockquote>
|
||||
|
||||
<h2>Overview</h2><p><em>CoffeeScript on the <span class="hidden-md-up">top</span><span class="hidden-sm-down">left</span>, compiled JavaScript output on the <span class="hidden-md-up">bottom</span><span class="hidden-sm-down">right</span>. The CoffeeScript is editable!</em></p>
|
||||
<aside class="code-example container-fluid bg-ribbed-dark" data-example="overview">
|
||||
@@ -753,10 +753,10 @@ cubes = (function() {
|
||||
<h2>Installation</h2><p>The command-line version of <code>coffee</code> is available as a <a href="http://nodejs.org/">Node.js</a> utility. The <a href="v2/browser-compiler/coffee-script.js">core compiler</a> however, does not depend on Node, and can be run in any JavaScript environment, or in the browser (see <a href="#try">Try CoffeeScript</a>).</p>
|
||||
<p>To install, first make sure you have a working copy of the latest stable version of <a href="http://nodejs.org/">Node.js</a>. You can then install CoffeeScript globally with <a href="http://npmjs.org">npm</a>:</p>
|
||||
<blockquote>
|
||||
<pre><code>npm install --global coffee-script</code></pre></blockquote>
|
||||
<pre><code>npm install --global coffeescript</code></pre></blockquote>
|
||||
<p>When you need CoffeeScript as a dependency of a project, within that project’s folder you can install it locally:</p>
|
||||
<blockquote>
|
||||
<pre><code>npm install --save coffee-script</code></pre></blockquote>
|
||||
<pre><code>npm install --save coffeescript</code></pre></blockquote>
|
||||
|
||||
</section>
|
||||
<section id="usage">
|
||||
|
||||
@@ -5,11 +5,11 @@ The command-line version of `coffee` is available as a [Node.js](http://nodejs.o
|
||||
To install, first make sure you have a working copy of the latest stable version of [Node.js](http://nodejs.org/). You can then install CoffeeScript globally with [npm](http://npmjs.org):
|
||||
|
||||
> ```
|
||||
npm install --global coffee-script
|
||||
npm install --global coffeescript
|
||||
```
|
||||
|
||||
When you need CoffeeScript as a dependency of a project, within that project’s folder you can install it locally:
|
||||
|
||||
> ```
|
||||
npm install --save coffee-script
|
||||
npm install --save coffeescript
|
||||
```
|
||||
|
||||
@@ -5,5 +5,5 @@ The golden rule of CoffeeScript is: _“It’s just JavaScript.”_ The code com
|
||||
**Latest Version:** [<%= fullVersion %>](http://github.com/jashkenas/coffeescript/tarball/<%= fullVersion %>)
|
||||
|
||||
> ```
|
||||
npm install -g coffee-script
|
||||
npm install -g coffeescript
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user