What is the correct approach to create an URL from a file path string in Node.js?
new URL("/foo/bar.js")
TypeError [ERR_INVALID_URL]: Invalid URL
What is the correct approach to create an URL from a file path string in Node.js?
new URL("/foo/bar.js")
TypeError [ERR_INVALID_URL]: Invalid URL