Small module that converts from URLs to filenames to URLs
npm install url-file-url
Useful for embedded runtimes with no url
module.
const { fileURLToPath, pathToFileURL } = require('url-file-url')
pathToFileURL('/foo/bar') // file:///foo/bar
fileURLToPath('file:///foo/bar') // /foo/bar
Apache-2.0