5to6
5to6 copied to clipboard
Convert ES5 code to ES6
Why haven't you used ES6 features like classes, let, imports for this repository. Since it being a converter to ES6, it would be better for it to follow ES6 conventions
Windows Git is installed. Everything in the target folder (which is a copy, anyway, so I don't really care about git here) is committed to git. > git status says:...
It would be great if we could transpile constructor functions to classes. Convert this: ``` function Fuu(fuu) { this.fuu = fuu; } Fuu.prototype.bar = function(arg) { console.log(arg); } ``` Into...
Comments should not be wiped out! Ran this and it wiped out comments!
After install it i get this error trying to run 5to6: module.js:338 throw err; ^ Error: Cannot find module 'Set' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at...