• Asynchronous symlink(2) - Create a new symbolic link to an existing file.

    Parameters

    • target: PathLike

      A path to an existing file. If a URL is provided, it must use the file: protocol.

    • path: PathLike

      A path to the new symlink. If a URL is provided, it must use the file: protocol.

    • Optional type: null | string

      May be set to 'dir', 'file', or 'junction' (default is 'file') and is only available on Windows (ignored on other platforms). When using 'junction', the target argument will automatically be normalized to an absolute path.

    Returns Promise<void>