syhol
How to get the path to the compiled binary?
One option is to get the pid from
Deno.pid
then using that to lookup the path to the executable https://stackoverflow.com/questions/606041/how-do-i-get-the-path-of-a-process-in-unix-linux it's messy though as you might need to handle each OS differently11 replies
How to get `require.main.filename` like Node as Deno
Does this fulfill your requirements https://deno.land/api@v1.38.5?s=Deno.mainModule
Deno.mainModule
The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.
11 replies