添加了管道/套接字解析支持。
参数 path 可以是使用 file: 协议的 WHATWG URL 对象。
path
file:
URL
调用 realpathSync 现在再次适用于 Windows 上的各种边缘情况。
realpathSync
参数 cache 已删除。
cache
新增于: v0.1.31
返回解析的路径名。
Pipe/Socket resolve support was added.
The path parameter can be a WHATWG URL object using file: protocol.
Calling realpathSync now works again for various edge cases on Windows.
The cache parameter was removed.
Added in: v0.1.31
options
encoding
'utf8'
Returns the resolved pathname.
For detailed information, see the documentation of the asynchronous version of this API: fs.realpath().
fs.realpath()