Function readlinkSync

  • Parameters

    • path: PathLike
    • Optionaloptions: BufferEncodingOption

    Returns Buffer

  • Parameters

    • path: PathLike
    • options:
          | undefined
          | null
          | "ascii"
          | "utf8"
          | "utf-8"
          | "utf16le"
          | "utf-16le"
          | "ucs2"
          | "ucs-2"
          | "base64"
          | "base64url"
          | "latin1"
          | "binary"
          | "hex"
          | ObjectEncodingOptions

    Returns string

  • Parameters

    • path: PathLike
    • Optionaloptions:
          | null
          | "buffer"
          | "ascii"
          | "utf8"
          | "utf-8"
          | "utf16le"
          | "utf-16le"
          | "ucs2"
          | "ucs-2"
          | "base64"
          | "base64url"
          | "latin1"
          | "binary"
          | "hex"
          | ObjectEncodingOptions
          | {
              encoding: "buffer";
          }

    Returns Buffer | string