function realpathSync
realpathSync(path: PathLike,options?: EncodingOption,): stringDeprecated
Returns the resolved pathname.
For detailed information, see the documentation of the asynchronous version of this API: realpath.
path: PathLikeoptional
options: EncodingOptionstringrealpathSync(path: PathLike,options: BufferEncodingOption,): BufferDeprecated
Synchronous realpath(3) - return the canonicalized absolute pathname.
path: PathLikeA path to a file. If a URL is provided, it must use the file: protocol.
options: BufferEncodingOptionThe encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.
BufferrealpathSync(path: PathLike,options?: EncodingOption,): string | BufferDeprecated
Synchronous realpath(3) - return the canonicalized absolute pathname.
path: PathLikeA path to a file. If a URL is provided, it must use the file: protocol.
optional
options: EncodingOptionThe encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.
string | Buffer