fileURLToPathBuffer
external fun fileURLToPathBuffer(url: String, options: FileUrlToPathOptions = definedExternally): NonSharedBuffer(source)
external fun fileURLToPathBuffer(url: URL, options: FileUrlToPathOptions = definedExternally): NonSharedBuffer(source)
Like url.fileURLToPath(...) except that instead of returning a string representation of the path, a Buffer is returned. This conversion is helpful when the input URL contains percent-encoded segments that are not valid UTF-8 / Unicode sequences.
Since
v24.3.0
Parameters
url
The file URL string or URL object to convert to a path.