Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-junction

Checks if a given path is a junction

windows, junction

readme

is-junction

Determine if a given path resolves to an NTFS junction (reparse point).

const {isJunctionSync} = require(".");
isJunctionSync(path); // returns true or false depending on if the path is a junction.