Move your CoffeeScript source to JavaScript using ES6 syntax.
$ npm install -g decaffeinate
Incomplete. Check the issues page for outstanding bugs and incomplete features. This project should not yet be relied upon for production use.
- Fully automated conversion of a subset1 of the CoffeeScript language to JavaScript v6 (aka ES6).
- Preserve whitespace, formatting, and comments as much as possible to allow a full one-time conversion of your CoffeeScript source code.
- Provide helpful error messages when it encounters an unsupported language construct.
See the output of decaffeinate --help
after installing.
1. This project uses CoffeeScriptRedux which deviates from the official CoffeeScript in some small ways that may affect your project. In addition, not all language constructs are supported.