▲ How to Fix "__dirname is Not Defined" in NodeJs at jsdev.space▼1 up and 0 down, posted by jsdevspace 20 days ago 3 comments
jklu 19 days ago. link 2 points ▲ ▼Another solution is: https://nodejs.org/docs/latest-v20.x/api/esm.html#importmetadirname
tracker1 17 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 16 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 :-(