I started to use async/await because react-native and now I can't live without it.
In nodejs you can have it:
npm install --save babel-core babel-loader babel-polyfill babel-preset-es2015 babel-preset-stage-0
Adding this to entry point file
require("babel-core/register");
require("babel-polyfill");
and having a .babelrc with these presets: {
"presets": ["es2015", "stage-0"]
}
Then you can transpile with babel-cli
( sudo npm install -g babel-cli if you don't have it yet) babel app.js -o transpiled_app.js
Make sure you have npm version 3, or it become too slow to initialise.as @vdaniuk mention Chackra supports it, but did anyone tried this https://github.com/nodejs/node-chakracore?
Is there any other way to get async/await today ?