Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pogo/lib/util/is-path-inside.ts

Server framework for Deno
Latest
import * as pogo from "https://deno.land/x/pogo@v0.6.0/lib/util/is-path-inside.ts";

Variables

Returns true if childPath is a descendant of parentPath. Otherwise returns false, including if both paths are equal. The paths are resolved and normalized before comparing them but symlinks are not followed and neither path needs to exist on disk.