The following products support ES6 options, at least partially:
Supports most of ES6 features when running with
I would define a shell alias
harm=node --harmony and use
harm <es6 filename.js>
from the command line.
If you need to switch between stable and unstable nodejs versions, use nvm, it works excellent on Mac.
esnext to true, the list of supported ES6 options is
Most importantly it includes the generators.
Travis continuous integration servers support
multiple nodejs versions
Set the nodejs version to 0.11 in
.travis.yml file and define
npm start command in package.json to turn on harmony features:
Cloud hosting for nodejs apps Heroku supports multiple nodejs versions, including latest 0.11.x. There is nothing to do, except specify the version in the package.json file
Do not break
Excellent syntax highlighter for browser Prism does not break, but does not highlight ES6 syntax yet.
Not supported :(
Most of the tools support Harmony generator functions nicely. To bridge the remaining gap and distribute your ES6 code so it could be used from ES5, I wrote this es6-generators-example.
Aside from Nodejs, what about ES6 support among the browsers? Again, the support varies is feature by feature, see table. For a lot of features (for example extending Array and Math objects), there is a good es6 shim.
- My blog post Playing with ES6 code