How to use top-level await in Node.js

stefan judis
stefan judis
6.5 هزار بار بازدید - 3 سال پیش - This is a video about
This is a video about top-level await in Node.js. Top-level await is available in ECMAscript modules in Node.js. You can use it in two ways in your Node.js project. Use the `mjs` file extension or enable it in your `package.json` using `"type": "module"`.


Blog post: https://www.stefanjudis.com/today-i-l...
Node.js release post: https://nodejs.org/en/blog/release/v1...


Say Hi on Twitter: Twitter: stefanjudis
3 سال پیش در تاریخ 1400/01/16 منتشر شده است.
6,519 بـار بازدید شده
... بیشتر