fileURLToPathBuffer
external fun fileURLToPathBuffer(url: String, options: FileUrlToPathOptions = definedExternally): Buffer<*>(source)
external fun fileURLToPathBuffer(url: ERROR CLASS: Symbol not found for URL, options: FileUrlToPathOptions = definedExternally): Buffer<*>(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.