MCPcopy Create free account
hub / github.com/Effect-TS/effect / isPathInside

Function isPathInside

packages/tools/jsdocs/src/Jsdocs.ts:735–738  ·  view source on GitHub ↗
(parent: string, child: string)

Source from the content-addressed store, hash-verified

733}
734
735function isPathInside(parent: string, child: string): boolean {
736 const relative = path.relative(parent, child)
737 return relative === "" || (!relative.startsWith("..") && !path.isAbsolute(relative))
738}
739
740function packageSpecifier(packageName: string, subpath: string): string {
741 return subpath === "" ? packageName : `${packageName}/${subpath}`

Callers 2

resolveBarrelImportFunction · 0.85
resolveJSDocImportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected