FsymlinkSync
Bun

function

fs.symlinkSync

function symlinkSync(
target: PathLike,
path: PathLike,
type?: null | Type
): void;

Returns undefined.

For detailed information, see the documentation of the asynchronous version of this API: symlink.

Referenced types

type PathLike = string | Buffer | URL

Valid types for path values in "fs".

type Type = 'dir' | 'file' | 'junction'