# js2coffee/js2coffee

Compile JavaScript to CoffeeScript

Repository: https://github.com/js2coffee/js2coffee
Canonical: https://ross.abutalabs.com/products/js2coffee
Homepage: http://js2.coffee
Language: CoffeeScript
License: MIT
License Family: permissive
Last push: 2023-11-13T11:44:31+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5570, "days_push": 1024, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2080, forks 195 (observed 2026-08-28T04:06:11.594894+00:00)

## What it is
js2coffee is a JavaScript-to-CoffeeScript compiler available as a CLI tool and a Node.js/browser library. It parses JavaScript with Esprima and emits CoffeeScript code, warnings, and source maps.

## Use cases
- convert javascript files to coffeescript
- migrate a legacy js codebase to coffeescript
- compile javascript to coffeescript from the command line
- use a javascript-to-coffeescript compiler in a node script
- convert js snippets to coffeescript in the browser

## When to choose
- you need to translate existing JavaScript source into CoffeeScript
- you want both a CLI and a programmable API with warnings and source maps

## When to avoid
- you want to convert CoffeeScript to JavaScript (use the CoffeeScript compiler instead)
- you need a general-purpose JavaScript transpiler like Babel
- the project's maintenance pace or CoffeeScript's declining usage is a concern

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: compiler, parser, cli, developer-tools
- domain: programming-languages, compilers, developer-tools
- platform: cli, browser, cross-platform
- tags: coffeescript, javascript, transpiler, source-to-source, ast, esprima, command-line, nodejs

## Member repositories
- js2coffee/js2coffee (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:11.594894+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:02.574011+00:00, confidence not recorded.
  - readme: https://github.com/js2coffee/js2coffee (fetched 2026-08-28T04:06:11.594894+00:00, sha c4e35298be35)
  - homepage: http://js2.coffee (fetched 2026-08-29T10:36:30.784107+00:00, sha b6ed6c7c6be5)
  - site_page: https://js2.coffee/about (fetched 2026-08-29T10:36:30.787199+00:00, sha 5f08ebc527e0)
  - site_page: https://js2.coffee/documentation (fetched 2026-08-29T10:36:30.789378+00:00, sha 79c94e38e7c3)
  - registry_npm: https://registry.npmjs.org/js2coffee (fetched 2026-08-29T10:36:30.791272+00:00, sha fe51d66dd214)
- Data as of 2026-08-30T08:39:29.467469+00:00.
