this post was submitted on 26 Mar 2024
3 points (100.0% liked)

Node.js

217 readers
1 users here now

founded 1 year ago
MODERATORS
 

cross-posted from: https://programming.dev/post/11927506

Many times when I’ve tried to write some code in Node.js using ES modules I’ve found myself reaching for __dirname and then looking up how to replace it. Now Node.js, Deno and Bun support import.meta.dirname. Check out the article for more detail.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here