Hacker News new | ask | show | jobs
by impulsivepuppet 99 days ago
this isn't uniquely pythonic and JS isn't a great counterexample.

https://nodejs.org/api/esm.html#importmetamain

node also has __dirname and __filename from the good old days.

1 comments

The JS one is at least a builtin instead of a magic string