A utility that fixes CoffeeScript-compiled JavaScript output to be compatible with Google Closure Compiler. Version 0.1.12 is the latest stable release as of late 2013, with no active development since then. It addresses issues like missing 'var' declarations and proper function expression wrapping that break Closure Compiler's advanced optimizations. Unlike manual post-processing, it automates these fixes. The package is designed for build pipelines, notably used as a Grunt plugin. Given its age and lack of updates, it should be considered deprecated for modern projects.
npm install coffee2closureNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use coffee2closure to transform CoffeeScript code for Closure Compiler compatibility.
Consider using modern alternatives like decaffeinate or direct transpilation with Babel.
Ensure you pass .coffee file contents, not .js.
Review the output and apply additional fixes if needed.
Run `npm install coffee2closure --save-dev` and ensure your import uses the correct path.
Use `import coffee2closure from 'coffee2closure'` or `const coffee2closure = require('coffee2closure')`.Fix the CoffeeScript syntax before passing it to coffee2closure.
Add `grunt.loadNpmTasks('coffee2closure')` in your Gruntfile.No dependency data recorded yet.