When using ESM in Node.js you don't have `__dirname` anymore and you have to do a little dance to get something equivalent. It can be a bit tedious, but I recently found out from @delvedor that there's an amazing package called `desm` that will make things easier! ๐Ÿ‘Œ #nodejs
2
7
16
PS: Mandatory thank you to @matteocollina for another รผber-useful library!

9:23 AM ยท Dec 10, 2020

1
0
4
Replying to @loige
The fact that this is not in @nodejs core is a failure of our own processes ๐Ÿ˜ญ.
2
0
1
the join() utility there is kind of a must.
0
0
1