4 ms·
As of Node 14.8, you can use await at the top level. In previous versions (not sure for how long), it was hidden behind a flag. https://nodejs.org/en/blog/relea
by SummerlyMars 6y ago
As of Node 14.8, you can use await at the top level. In previous versions (not sure for how long), it was hidden behind a flag.
https://nodejs.org/en/blog/release/v14.8.0/ https://nodejs.org/en/blog/release/v14.8.0/