Skip to main content
linkSync - node__fs.d.ts - Node documentation
function linkSync

Usage in Deno

```typescript import { linkSync } from "node:node__fs.d.ts"; ```
linkSync(
existingPath: PathLike,
newPath: PathLike,
): void
Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`.

Parameters

existingPath: PathLike
newPath: PathLike

Return Type

void