How to use async/await in ES6 or ES5 environments
Dependencies:
- NVM
- NPM
- Node (<4 and >= 4)
To ecma 6, use node 4+
cd to-ecma-6
npm install
npm run build -s
nvm run node ./dist/async-function-ecma-7-sample.js
To ecma 5, use node 0.12.x
cd to-ecma-5
npm install
npm run build -s
nvm run 0.12.9 ./dist/async-function-ecma-7-sample.js