⬆️ ⬇️

Node.js 7.0.0 is released. Meet async / await without babel

File: Node.js logo 2015.svg



7th node was released, hurray! What's new:





For me, this is a long-awaited release, as it became possible to use the async / await construct without the babel transpiler. It all turns on with the key --harmony .

')

Now you can without babel like this:



(async function() { let content = await require("request-promise") .get("http://example.com/"); console.log(content); })() 


A week ago, the Node.js 6.x branch received the status of LTS, updates for which will be issued within 30 months. The release of Node.js 8 is scheduled for April 2017.



I collected the 7th node for



Source: https://habr.com/ru/post/313658/



All Articles