You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
There are a number of workflows in NodeJS today that use
__filenameand__dirnameto handle contextual paths relative to the current module itself.Currently we are looking at exposing a
import.meta.urlwhich will be a file URL of the current module.To use this contextual URL in NodeJS APIs requires a rather unwieldy conversion process along the lines of:
It would be great if we could allow a much more polished workflow here for users.