3 ms·
Can you give an example of a CoffeeScript file being transcribed to modern JS :)? I just want to see which syntax I prefer.
by baby 9y ago
Can you give an example of a CoffeeScript file being transcribed to modern JS :)? I just want to see which syntax I prefer.
- alangpierce 9y agoSure, here's src/main-process/atom-protocol-handler.coffee from the atom codebase (it's a really long URL because it includes the whole source code): http://bit.ly/2rIhFD4 http://bit.ly/2rIhFD4 In this case, the __guardMethod__ usages should probably be rewritten by hand after running decaffeinate. In general, you can paste any code into the left side of http://decaffeinate-project.org/repl http://decaffeinate-project.org/repl to get output on the right side.