Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A CoffeeScript compiler in pure Ruby

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 coffee-script-pure.gemspec
Octocat-spinner-32 coffee-script.LICENSE
README.md

coffee-script-pure

coffee-script-pure is a CoffeeScript compiler running in pure Ruby. It adopts the same protocol as ruby-coffee-script:

require "coffee-script-pure"
CoffeeScriptPure.compile "console.log 'hello world'", bare: true
  # => "\nconsole.log('hello world');\n"

coffee-script-pure uses Twostroke - a Javascript interpreter written in Ruby.

A compiled and deflated copy of the CoffeeScript 1.2.0 compiler is bundled with coffee-script-pure.

Installation

gem install coffee-script-pure

Does it work?

Mostly. Nearly all the files in the CoffeeScript compiler can be compiled successfully by coffee-script-pure.

If you have a program that breaks, please let me know about it.

Something went wrong with that request. Please try again.