coffeetoes6
A CoffeeScript to ES6 converter, based on using CoffeeScript to do initial conversion, and then post-conversion fixes to use newer ES6 features
Last updated 4 years ago by kriszyp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install coffeetoes6 
SYNC missed versions from official npm registry.

Coffeetoes6 converts CoffeeScript to JavaScript, using newer EcmaScript functionality. Install it with:

	npm install -g coffeetoes6

There are several of these types of converters. This one works by first using the standard CoffeeScript compiler to convert to JavaScript, and then converting some of the verbose JavaScript output to use newer features. It is definitely not perfect, and any converted code must be reviewed. It can convert:

  • Classes (with methods)
  • Comment preservation (the CoffeeScript compiler usually loses them)
  • require -> import statements
  • Anonymous to fat arrow functions
  • var -> let

Again, the output code will definitely need to be reviewed (as you should always do, to make sure you are using the most appropriate new features). There are a number of converters out there. This one works well for me, it is small, simple, and easy to hack on. Perhaps it will work for you.

Current Tags

  • 0.1.11                                ...           latest (4 years ago)

11 Versions

  • 0.1.11                                ...           4 years ago
  • 0.1.10                                ...           4 years ago
  • 0.1.9                                ...           4 years ago
  • 0.1.8                                ...           4 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 2
Last Month 8
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |