coffee-script
Version, currently 1.0.014 versions
- 1.0.0latestJun 22, 2021
- 0.6.0not indexedJun 22, 2021
- 0.5.0not indexedJun 22, 2021
- 0.4.0not indexedJun 22, 2021
- 0.3.1not indexedJun 22, 2021
- 0.3.0not indexedJun 22, 2021
- 0.2.0not indexedJun 22, 2021
- 0.1.6not indexedJun 22, 2021
- 0.1.5not indexedJun 22, 2021
- 0.1.4not indexedJun 22, 2021
- 0.1.3not indexedJun 22, 2021
- 0.1.2not indexedJun 22, 2021
- 0.1.1not indexedJun 22, 2021
- 0.1.0not indexedJun 22, 2021
github.com/jessedoyle/coffee-script
Crystal CoffeeScript Compiler http://coffeescript.org/
17 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
coffee-script:
github: jessedoyle/coffee-script
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
>= 0.35.1- License
- MIT
- Author
- Jesse Doyle <jdoyle@ualberta.ca>
Dependencies
Runtime Dependencies
- duktape>= 1.0, < 3.0github: jessedoyle/duktape.cr
- coffee-script-source~> 2.0github: jessedoyle/coffee-script-source
README
# Crystal CoffeeScript
[](https://badge.fury.io/gh/jessedoyle%2Fcoffee-script)
[](https://travis-ci.org/jessedoyle/coffee-script)
This shard is a Crystal bridge to the official CoffeeScript compiler.
```crystal
require "coffee-script"
CoffeeScript.compile(File.read("script.coffee")) # => compiled code
```
The code in this library is a direct port of Ruby's [coffee-script](https://github.com/rails/ruby-coffee-script) gem.
## Installation
Add this to your project's `shard.yml`:
```yaml
dependencies:
coffee-script:
github: jessedoyle/coffee-script
version: ~> 1.0
```
then execute `shards install`.
## Configuration
You can use an alternate CoffeeScript compiler version by setting the `COFFEESCRIPT_SOURCE_PATH` environment variable:
```bash
export COFFEESCRIPT_SOURCE_PATH=/my/custom/path/coffee-script.js
```
The `compile` method also accepts additional arguments that may be passed to the runtime:
```crystal
src = File.read("script.coffee")
CoffeeScript.compile(src, { bare: true }) # => compiled code
```
## Dependencies
This library depends on the [coffee-script-source](https://github.com/jessedoyle/coffee-script-source) shard, please see the [releases page](https://github.com/jessedoyle/coffee-script-source/releases) for compiler versions.
This library uses [duktape.cr](https://github.com/jessedoyle/duktape.cr) as the javascript runtime.
## License
Distributed under the MIT License. See `LICENSE` for details.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Jun 22, 2021
- Commit
392376e790a2- Crystal
>= 0.35.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/jessedoyle/coffee-script
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 14