Comment
Comment by dfabulich
The new stable timers API in Node 16, combined with top-level await, means that you can now easily sleep in an ESM Node script, like this:
(But note that you'll have to activate ESM mode to write this script, e.g. by writing it in a `.mjs` file instead of a `.js` file or by adding a setting to package.json.) https://redfin.engineering/node-modules-at-war-why-commonjs-...