Follow

Just updated my CommonJS to ESM in Node.js post to include a snippet for __dirname in ESM that works cross-platform, unlike the previous one that failed on Windows.

ar.al/2021/01/27/commonjs-to-e

· · Web · 0 · 1 · 2
Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!