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.

· · 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!