5 ms·
I was confused when writing a NodeJs script last night which ES* features were supported in the node runtime I had installed (6.9.x). This blog posts mentioned
by hackcrafter 10y ago
I was confused when writing a NodeJs script last night which ES* features were supported in the node runtime I had installed (6.9.x).
This blog posts mentioned Node already fully supports ES6.
Is there a table anywhere that lists ES6/ES7 features and which nodejs version supports it natively?
I assume async/await (which I love and use from TypeScript) will only be available in Node 7.x and not 6.x.
The Node.js home-page makes node 7.x look scary unstable, is there any real-world caveats to using it?
- eunoia 10y agoYou might find this useful. http://node.green/ http://node.green/
- hackcrafter 10y agoYes! I swear I googled for something like this and came up empty multiple times. Thanks!
- netcraft 10y agofyi with typescript you can target all the way down to es3 for async/await now. Certainly if you target es5 you can support any currently-supported version of node.
- nicoburns 10y agoNode 7.x is stable. The only caveat is that it won't be supported as long as node 6. That is, it will stop receiving security updates in ~6 months rather than ~18 months. As long as you easily update your node version there's no reason not to use it.
- __derek__ 10y ago> Is there a table anywhere that lists ES6/ES7 features and which nodejs version supports it natively? Why, yes, there is: Kangax's Compatibility Table.[1] [1]: https://kangax.github.io/compat-table/es6/ https://kangax.github.io/compat-table/es6/