{"id":16086117,"url":"https://github.com/zw963/js2coffee","last_synced_at":"2025-07-03T17:05:13.602Z","repository":{"id":56879417,"uuid":"42120533","full_name":"zw963/js2coffee","owner":"zw963","description":"Convert yours JavaScript to CoffeeScript, vice versa.","archived":false,"fork":false,"pushed_at":"2015-09-14T15:00:44.000Z","size":340,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T07:04:06.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/zw963.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2015-09-08T15:15:23.000Z","updated_at":"2015-09-21T13:14:49.000Z","dependencies_parsed_at":"2022-08-20T23:10:46.322Z","dependency_job_id":null,"html_url":"https://github.com/zw963/js2coffee","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zw963/js2coffee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fjs2coffee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fjs2coffee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fjs2coffee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fjs2coffee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zw963","download_url":"https://codeload.github.com/zw963/js2coffee/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fjs2coffee/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935604,"owners_count":22934386,"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-09T13:10:33.037Z","updated_at":"2025-06-15T07:04:07.467Z","avatar_url":"https://github.com/zw963.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js2coffee [![Build Status](https://travis-ci.org/zw963/js2coffee.svg?branch=master)](https://travis-ci.org/zw963/js2coffee) [![Gem Version](https://badge.fury.io/rb/js2coffee.svg)](http://badge.fury.io/rb/js2coffee)\n\nConvert yours JavaScript to CoffeeScript, vice versa, just for ruby developer.\n\n## Philosophy\n\n* Keep it simple, a command line with no more options.\n* Pretty format output with [coderay](https://github.com/rubychan/coderay).\n* Watch a directory, convert automaticly when file change.\n* SourceMap generation automaticly, for debug with CoffeeScript in Firefox/Chrome.\n* With Nodejs, just for Ruby on Rails developer.\n\n## Getting Started\n\nInstall via Rubygems\n\n    $ gem install js2coffee\n\n## Usage\n\nRun `js2coffee` or `js2coffee` individually. (old command `coff` is not available.)\n\n### Compile script file to STDOUT.\n\n    $ coffee2js your_awesome.coffee\n\nYou can redirect STDOUT to a new file.\n\n    $ coffee2js your_awesome.coffee \u003e you_awesome.js\n\n![File](http://zw963.github.io/snapshot12.png)\n\n### Watching one directory\n\n    $ coffee2js script_directory\n\nThis will create corresponding js(.js) and Source Map(.js.map) in same directory as coffee file live in.\nmap file will keep hide with leading dot, e.g. `awesome.js` will create `awesome.coffee and .awesome.js.map`\n\n![Monitor](http://zw963.github.io/snapshot11.png)\n    \nIf one directory named `coffee` or named `js` in you project root, will create another directory\nautomaticly with cloned directory hierarchy, this will make js and coffee file saved seperately.\n\n![Monitor](http://zw963.github.io/snapshot14.png)\n\n### Compile script directly\nYou can run coffee script directly with: `-e` argments or pipe.\n\n![File](http://zw963.github.io/snapshot15.png)\n![File](http://zw963.github.io/snapshot16.png)\n\n## Environment variable\n\nYou can setting `JS2COFFEE_EXCLUDE_PATTERN` to specify the pattern to be skipped when watching one directory.\n\n    $ export JS2COFFEE_EXCLUDE_PATTERN='one_pattern|another_pattern'\n\njs2coffee will always skip `node_modules` and `bower_components`.\n\n## Support\n\n  * MRI 1.9.3+\n  * Rubinius 2.2+\n\n## Compiler current used:\n\n  * [CoffeeScript 1.1.0](http://coffeescript.org), used for convert from CoffeeScript to JavaScript.\n  * [js2coffee 2.1.0](http://js2.coffee), used for convert JavaScript to CoffeeScript.\n\n## History\n\nMore update info, please See [CHANGELOG](https://github.com/zw963/js2coffee/blob/master/CHANGELOG) for details.\n\n## Contributing\n\n  * [Bug reports](https://github.com/zw963/js2coffee/issues)\n  * [Source](https://github.com/zw963/js2coffee)\n  * Patches:\n    * Fork on Github.\n    * Run `gem install --dev js2coffee` or `bundle`.\n    * Create your feature branch: `git checkout -b my-new-feature`.\n    * Commit your changes: `git commit -am 'Add some feature'`.\n    * Push to the branch: `git push origin my-new-feature`.\n    * Send a pull request :D.\n\n## license\nReleased under the MIT license, See [LICENSE](https://github.com/zw963/js2coffee/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fjs2coffee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzw963%2Fjs2coffee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fjs2coffee/lists"}