▲ How to Fix "__dirname is Not Defined" in NodeJs at jsdev.space▼1 up and 0 down, posted by jsdevspace 63 days ago 3 comments
jklu 63 days ago. link 2 points ▲ ▼Another solution is: https://nodejs.org/docs/latest-v20.x/api/esm.html#importmetadirname
tracker1 60 days ago. link 2 points ▲ ▼Yeah... this would be the way... curious on Deno and Bun though... we need a can i use database against the node API for the others.
jklu 60 days ago. link 1 point ▲ ▼Even better would be if Node would use webstandards for everything as well. E.g. Deno sockets are webstandard streams, but Node sockets are node streams :-(