Top Level Await was activated by default (not behind a flag) since Node v14.8. Node v14 is no longer maintained, so we can remove the IIFE ceremony of (async () => {})() and just use await directly.
I replaced the IIFE with a compound statement block since it seemed it was intended to have the codes separated in some way.
Top Level Await was activated by default (not behind a flag) since Node v14.8. Node v14 is no longer maintained, so we can remove the IIFE ceremony of
(async () => {})()
and just useawait
directly.I replaced the IIFE with a compound statement block since it seemed it was intended to have the codes separated in some way.