repo
replacements.fyi

// package

is-path-cwd

type: "module"

// preferences

// replacements (1)

snippet::is-path-equal-cwd

Simple or drop-in replacement

This package is no longer necessary. You can check if a path equals the current working directory using `path.relative`.

// example

import { relative } from 'node:path';

const isPathCwd = (p) =>
	!relative(p, process.cwd());