JavaScript to CoffeeScript compiler. v2.2.0 (latest) rewrites the 0.x series with a new Esprima-based parser, offering better JavaScript coverage. Released on npm and Bower. Key differentiator: unidirectional conversion from JS to CoffeeScript with warnings for unrepresentable patterns.
npm install js2coffeeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile JavaScript to CoffeeScript using the build method, outputting CoffeeScript code.
Use `js2coffee.build()` instead of the old `js2coffee.js2coffee()`
Upgrade to v2.x using the migration guide
Check result.warnings array after conversion and handle accordingly
npm install js2coffee
Use js2coffee.build() instead of trying to call js2coffee()
Update to js2coffee.build() for v2