温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/fs/readlink
点击访问原文链接

Node fs.readlink function | API Reference | Bun

Node fs.readlink function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:fs/readlinkNreadlink

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:fs/readlinkNreadlink

namespace

fs.readlinkfunction readlink(path: PathLike,options: EncodingOption,callback: (err: null | ErrnoException, linkString: string) => void): void;Reads the contents of the symbolic link referred to by path. The callback gets two arguments (err, linkString).

See the POSIX readlink(2) documentation for more details.

The optional options argument can be a string specifying an encoding, or an object with an encoding property specifying the character encoding to use for the link path passed to the callback. If the encoding is set to 'buffer', the link path returned will be passed as a Buffer object.

function readlink(path: PathLike,options: BufferEncodingOption,callback: (err: null | ErrnoException, linkString: NonSharedBuffer) => void): void;Asynchronous readlink(2) - read value of a symbolic link.

@param pathA path to a file. If a URL is provided, it must use the file: protocol.

@param optionsThe encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.

function readlink(path: PathLike,options: EncodingOption,callback: (err: null | ErrnoException, linkString: string | NonSharedBuffer) => void): void;Asynchronous readlink(2) - read value of a symbolic link.

@param pathA path to a file. If a URL is provided, it must use the file: protocol.

@param optionsThe encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.

function readlink(path: PathLike,callback: (err: null | ErrnoException, linkString: string) => void): void;Asynchronous readlink(2) - read value of a symbolic link.

@param pathA path to a file. If a URL is provided, it must use the file: protocol.

namespace readlink

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录