Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kriszyp/coffeetoes6
A very simple coffeescript to ES6 converter with minimal code modification without extra syntactic requirements (you will need to make fixes afterwards)
https://github.com/kriszyp/coffeetoes6
Last synced: 20 days ago
JSON representation
A very simple coffeescript to ES6 converter with minimal code modification without extra syntactic requirements (you will need to make fixes afterwards)
- Host: GitHub
- URL: https://github.com/kriszyp/coffeetoes6
- Owner: kriszyp
- Created: 2016-01-25T14:46:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-14T19:29:09.000Z (over 8 years ago)
- Last Synced: 2024-10-15T09:19:05.942Z (29 days ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 -> letAgain, 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.