netei / decaffeinate

CoffeeScript in, ES6 out

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

decaffeinate

CoffeeScript in, ES6 out.

JavaScript is the future, in part thanks to CoffeeScript. Now that it has served its purpose, it's time to move on. Convert your CoffeeScript source to ES6 JavaScript with decaffeinate.

Install

$ npm install -g decaffeinate

Status

Incomplete. Check the issues page for outstanding bugs and incomplete features. This project should not yet be relied upon for production use.

Goals

  • 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.

Usage

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.

About

CoffeeScript in, ES6 out

License:MIT License


Languages

Language:JavaScript 99.4%Language:Shell 0.6%