Skip to content

isPathSafe

isPathSafe(root, candidate): boolean

Defined in: packages/core/src/utils/path-security.ts:14

Whether joining root with candidate stays inside root (no traversal).

string

string

boolean