repo
replacements.fyi

// package

is-unc-path

type: "module"

// preferences

// replacements (1)

snippet::is-unc-path

Simple or drop-in replacement

This package is no longer necessary. You can test for a Windows UNC path such as `\\server\share` using a regular expression.

// example

const isUncPath = (filepath) =>
	/^[\\\/]{2,}[^\\\/]+[\\\/]+[^\\\/]+/.test(
		filepath,
	);