Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (20 loc) · 446 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 446 Bytes

async-await-example

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