Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.unstable.d.ts>Deno.symlinkSync

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.symlinkSync
import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { symlinkSync } = Deno;

UNSTABLE: type argument type may be changed to "dir" | "file".

UNSTABLE: needs security review.

Creates newpath as a symbolic link to oldpath.

The type argument can be set to dir or file. This argument is only available on Windows and ignored on other platforms.

NOTE: This function is not yet implemented on Windows.

  Deno.symlinkSync("old/name", "new/name");

Requires allow-read and allow-write permissions.

Parameters

oldpath: string
newpath: string
optional
type: string