octo3.
How to get `require.main.filename` like Node as Deno
@Joe Hildebrand
I will list examples of what I would like to do. I hope this gets the message across.
- User imports my public module from deno.land/x into app.ts
- When executed, the module will explore the expansion directory in the same hierarchy as app.tsx.
- If the expansion directory does not contain the desired file, the module will provide functionality with default parameters.
We want to get the path to app.ts to make this work.
11 replies