Skip to content

netei/decaffeinate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Shell 0.6%