{"id":17681256,"url":"https://github.com/jessedoyle/coffee-script","last_synced_at":"2025-05-12T22:08:39.044Z","repository":{"id":49248232,"uuid":"49039509","full_name":"jessedoyle/coffee-script","owner":"jessedoyle","description":"Crystal CoffeeScript Compiler http://coffeescript.org/","archived":false,"fork":false,"pushed_at":"2021-06-22T00:45:15.000Z","size":22,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-02T13:42:09.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jessedoyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-05T03:27:18.000Z","updated_at":"2023-03-27T10:18:47.000Z","dependencies_parsed_at":"2022-09-21T12:10:42.286Z","dependency_job_id":null,"html_url":"https://github.com/jessedoyle/coffee-script","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fcoffee-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fcoffee-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fcoffee-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fcoffee-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jessedoyle","download_url":"https://codeload.github.com/jessedoyle/coffee-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223835370,"owners_count":17211158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T09:10:38.053Z","updated_at":"2024-11-09T14:04:02.554Z","avatar_url":"https://github.com/jessedoyle.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crystal CoffeeScript\n\n[![GitHub version](https://badge.fury.io/gh/jessedoyle%2Fcoffee-script.svg)](https://badge.fury.io/gh/jessedoyle%2Fcoffee-script)\n[![Build Status](https://travis-ci.org/jessedoyle/coffee-script.svg)](https://travis-ci.org/jessedoyle/coffee-script)\n\nThis shard is a Crystal bridge to the official CoffeeScript compiler.\n\n```crystal\nrequire \"coffee-script\"\n\nCoffeeScript.compile(File.read(\"script.coffee\")) # =\u003e compiled code\n```\n\nThe code in this library is a direct port of Ruby's [coffee-script](https://github.com/rails/ruby-coffee-script) gem.\n\n## Installation\n\nAdd this to your project's `shard.yml`:\n\n```yaml\ndependencies:\n  coffee-script:\n    github: jessedoyle/coffee-script\n    version: ~\u003e 1.0\n```\n\nthen execute `shards install`.\n\n## Configuration\n\nYou can use an alternate CoffeeScript compiler version by setting the `COFFEESCRIPT_SOURCE_PATH` environment variable:\n\n```bash\nexport COFFEESCRIPT_SOURCE_PATH=/my/custom/path/coffee-script.js\n```\n\nThe `compile` method also accepts additional arguments that may be passed to the runtime:\n\n```crystal\nsrc = File.read(\"script.coffee\")\n\nCoffeeScript.compile(src, { bare: true }) # =\u003e compiled code\n```\n\n## Dependencies\n\nThis 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.\n\nThis library uses [duktape.cr](https://github.com/jessedoyle/duktape.cr) as the javascript runtime.\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessedoyle%2Fcoffee-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjessedoyle%2Fcoffee-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessedoyle%2Fcoffee-script/lists"}